Visual studio ReferencePath与ReferenceCopylocalPath

Visual studio ReferencePath与ReferenceCopylocalPath,visual-studio,msbuild,Visual Studio,Msbuild,有条件的ReferencePath与referencecopylocalpath之间有什么区别吗 这个问题是由在两段代码中同时使用两种方式的答案提出的。ReferencePath:解析的主文件的路径 referencecopylocalpath:标记为“CopyLocal”的引用及其依赖项,包括.pdb、.xmls和附属项 要测试每个项目的内容,请将其添加到.csproj文件中: <Target Name="AfterBuild"> <Message Text="1.

有条件的
ReferencePath
referencecopylocalpath
之间有什么区别吗


这个问题是由在两段代码中同时使用两种方式的答案提出的。

ReferencePath
:解析的主文件的路径

referencecopylocalpath
:标记为
“CopyLocal”
的引用及其依赖项,包括.pdb、.xmls和附属项

要测试每个项目的内容,请将其添加到.csproj文件中:

<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>

如果您使用Visual Studio构建项目,请不要忘记
Importance=“High”
属性。