I would like to get paths to all assemblies referenced in a .csproj
given the following requirements:
- include assemblies no matter how they were referenced (project, nuget, direct
.dll
import) - do not trigger a build
There is a good answer about how to do it for project references:
<MSBuild Projects="@(ProjectReference)" Targets="GetTargetPath">
<Output TaskParameter="TargetOutputs" ItemName="MyReferencedAssemblies" />
</MSBuild>
Is there a similar way to get .dll
paths of all other types of references?