Links to ReferencePath and ReferenceCopyLocalPaths

Is there a difference between ReferencePaththe condition '%(CopyLocal)'=='true'and ReferenceCopyLocalPaths?

The question was raised by this answer, which uses both methods in two parts of the code.
+5
source share
1 answer

ReferencePath: path to allowed main files.

ReferenceCopyLocalPaths: links marked as "CopyLocal"well as their dependencies, including .pdbs, .xmls and satellites.

To check the contents of each element, add it 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>
+10
source

All Articles