且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

警告:所有引用MyProject.csproj的项目都必须安装nuget包Microsoft.Bcl.Build

更新时间:2023-01-30 13:18:20

如果双击警告,它将为您提供有关禁用警告的说明.

If you double click the warning it gives you instructions for disabling the warning.

从尚不支持Nuget的项目中禁用项目引用是安全的.

It is safe to disable for projectreferences from projects that don't yet support Nuget.

请参阅从Microsoft.Bcl.Build.targets复制的粗体的以下部分.

See below portion in bold copied from Microsoft.Bcl.Build.targets.

BclBuildValidateNugetPackageReferences

BclBuildValidateNugetPackageReferences

可以通过为参考设置 SkipValidatePackageReferences = true 来禁用此目标作为项目参考:

This target can be disabled for a project reference by setting SkipValidatePackageReferences=true for the reference:

<ProjectReference Include="..\pcl\pcl.csproj">
  <Project>{664a9e98-fac7-4567-a046-0dde95fddb48}</Project>
  <Name>pcl</Name>
  <Properties>SkipValidatePackageReferences=true</Properties>
</ProjectReference>