Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ReferencePath vs. ReferenceCopyLocalPaths

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.

like image 933
SiberianGuy Avatar asked Jun 08 '12 05:06

SiberianGuy


1 Answers

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>
like image 114
KMoraz Avatar answered Nov 15 '22 11:11

KMoraz