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刪除。



猜您在找 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. T This project references NuGet package(s) that are missing on this computer. 解決C#項目出現“此項目引用這台計算機上缺少的 NuGet 程序包。使用 NuGet 程序包還原可下載這些程序包。有關詳細信息,請參閱 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 ..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props” win10啟動彈出這個網http://go.microsoft.com/fwlink/LinkID=219472&clcid=0x409 win10全局安裝插件卻不能全局用,https:/go.microsoft.com/ fwlink/?LinkID=135170禁止運行腳本 Nuget 報錯:Package restore is disabled by default.解決辦法 vs net core 項目異常解決辦法-project.assets.json' not found. Run a NuGet package restore to generate this file 出現身份驗證錯誤。要求的函數不受支持遠程計算機: 10.0.16.83這可能是由於CredssP加密Oracle修正。若要了解詳細信息,請訪問https://go.microsoft.com/fwlink/?linkid=866660 報錯: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
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM