Visual studio 2015 此项目引用此计算机上缺少的NuGet包。
在我的Visual studio 2015 update 3中,我将解决方案文件夹复制到另一台windows计算机时遇到以下错误 错误此项目引用此计算机上缺少的NuGet包。使用NuGet Package Restore下载它们。有关详细信息,请参阅。缺少的文件是..\packages\Microsoft.Net.Compilers.1.0.0\build**Microsoft.Net.Compilers.props**Visual studio 2015 此项目引用此计算机上缺少的NuGet包。,visual-studio-2015,nuget,Visual Studio 2015,Nuget,在我的Visual studio 2015 update 3中,我将解决方案文件夹复制到另一台windows计算机时遇到以下错误 错误此项目引用此计算机上缺少的NuGet包。使用NuGet Package Restore下载它们。有关详细信息,请参阅。缺少的文件是..\packages\Microsoft.Net.Compilers.1.0.0\build**Microsoft.Net.Compilers.props** 我验证了该项目的NuGet软件包管理器,所有标记为“缺少”的东西旁边都有一
我验证了该项目的NuGet软件包管理器,所有标记为“缺少”的东西旁边都有一个绿色的勾号,包括Microsoft.Net.Compilers。通过从.csproj文件中删除下面提到的代码段解决了这个问题
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
</Target>
此项目引用此计算机上缺少的NuGet包。启用NuGet软件包还原以下载它们。有关详细信息,请参阅http://go.microsoft.com/fwlink/?LinkID=322105. 缺少的文件是{0}。
可能与非常奇怪的。。。攻击目标节点,一切正常。为我工作。@LeoLiu MSFT如果你看到另一个问题()有这个错误,似乎有很多可能的原因。