Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package

Posted 森林之子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package 相关的知识,希望对你有一定的参考价值。

错误提示:

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>

 

 

以上是关于Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package 的主要内容,如果未能解决你的问题,请参考以下文章

Error This project references NuGet package(s) that are missing on this computer. Use NuGet Package

如何解决 this project references nuget package that are missing on this c

ERROR in D:/project/node_modules/@types/node/index.d.ts (20,1): Invalid‘ reference‘ directive syntax

[ERROR] The goal you specified requires a project to execute but there is no POM in this directory

Git you are not allowed to push code to protected branches on this project?

remote: GitLab: You are not allowed to push code to protected branches on this project.