Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, se

  1. 云栖社区>
  2. 博客>
  3. 正文

Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, se

阿笨net 2018-07-28 13:03:00 浏览521
展开阅读全文
错误提示:

Severity Code Description Project File Line Suppression State
Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props. Luck100 C:\Goods.csproj 315


解决办法:
参考:
http://docs.nuget.org/ndocs/consume-packages/package-restore

找到 项目文件.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>
复制代码

 

作者:阿笨

      官方QQ一群(已满):422315558跟着阿笨一起玩NET

      官方QQ二群(加入):574187616跟着阿笨一起玩NET(二)

      个人讲师课堂主页:https://study.163.com/provider/2544628/index.htm?share=2&shareId=2544628

      个人微信公众号课程主页:http://dwz.cn/ABenNET

网友评论

登录后评论
0/500
评论
阿笨net
+ 关注