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=317567.


記事本打開csproj文件

搜索nuget 刪除Target節點 類似如下:

<Target Name="EnsureBclBuildImported" BeforeTargets="BeforeBuild" Condition="'$(BclBuildImported)' == ''">
<Error Condition="!Exists('..\WindowFormDemo\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="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=317567." HelpKeyword="BCLBUILD2001" />
<Error Condition="Exists('..\WindowFormDemo\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets')" Text="The build restored NuGet packages. Build the project again to include these packages in the build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317568." HelpKeyword="BCLBUILD2002" />
</Target>

 

 

其他解決方案

參考: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>
復制代碼

https://www.cnblogs.com/slwangzi/p/6082330.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 報錯:npm\gulp.ps1,因為在此系統上禁止運行腳本,有關詳細信息,請參閱 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_E xecution_Policies。 創建Vue項目出錯,提示vue : 無法加載文件C:\Users\xxx\AppData\Roaming\npm\vue.ps1,因為在此系統上禁止運行腳本。有關詳細信息,請參閱 https:/go.microsoft.com/fwlink/?LinkID=135170 ng : 無法加載文件 D:\nodejs\node_global\ng.ps1,因為在此系統上禁止運行腳本。有關詳細信息,請參閱 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 vue : 無法加載文件 C:\Users\lihongjie\AppData\Roaming\npm\vue.ps1,因為在此系統上禁止運行腳本。有關詳細信息,請參閱 htt ps:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。 所在位置 行:1 字符: 1 + vue init webpack vue_p tsc : 無法加載文件 D:\Program Files\nodejs\tsc.ps1,因為在此系統上禁止運行腳本。有關詳細信息,請參閱 https:/go.microsoft.com/fwlink missing gradle project information 谷歌學術: but your computer or network may be sending automated queries. To protect our users, we can't process your request right now. See Google Help for more information. vs net core 項目異常解決辦法-project.assets.json' not found. Run a NuGet package restore to generate this file com.microsoft.sqlserver:sqljdbc4:jar:4.0 is missing, no dependency information available go: missing Git command. See https://golang.org/s/gogetcmd
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM