Is there any difference between ReferencePath
with condition '%(CopyLocal)'=='true'
and ReferenceCopyLocalPaths
?
The question was raised by this answer which uses both ways in two pieces of code.
Is there any difference between ReferencePath
with condition '%(CopyLocal)'=='true'
and ReferenceCopyLocalPaths
?
The question was raised by this answer which uses both ways in two pieces of code.
ReferencePath
: Paths to resolved primary files.
ReferenceCopyLocalPaths
: references that are marked as "CopyLocal"
and their dependencies, including .pdbs, .xmls and satellites.
To test each item contents, add this to your .csproj file:
<Target Name="AfterBuild">
<Message Text="1. ReferencePath:%0D%0A%09@(ReferencePath->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)', '%0D%0A%09')" />
<Message Text="2. ReferenceCopyLocalPaths:%0D%0A%09@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)', '%0D%0A%09')" />
</Target>