Tag: msbuild projectreference

MSBuild ProjectReference:private(“Copy Local”) – 允许的值和行为是什么?

TL; DR是否有任何官方文档详细描述了如何在MSBuild中使用<private> /“Copy Local”选项? 那么应该考虑什么样的价值呢? 当您将项目引用从Visual Studio中的一个项目添加到另一个项目时,它将向.csproj MSBuild文件添加<ProjectReference Include="…..csproj"> 。 当您将文件引用从Visual Studio中的一个项目添加到文件系统中的程序集文件时,它将添加<Reference Include="Foo"> <HintPath>….Foo.dll</HintPath> …到.csproj MSBuild文件。 在这两种情况下,对于Visual Studio设置Copy Local = True|False ,将添加子元素<Private>True</Private>或<Private>False</Private> 。 Reference和ProjectReference似乎被logging在Common MSBuild项目项下 : <ProjectReference> Represents a reference to another project. Item Name Description ————————- Name … Project … Package … <Reference> Represents an assembly (managed) reference in the project. Item Name Description […]