Visual Studio 2019中的Nuget包还原失败。 [英] Nuget package restore failed in visual studio 2019.

查看:2580
本文介绍了Visual Studio 2019中的Nuget包还原失败。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从GitHub克隆了一个项目。当我试图构建该项目时,我收到一个错误,如



I have cloned one project from GitHub. when i tried to build that project, i am getting an error like

: "

Severity	Code	Description	Project	File	Line	Suppression State
Error		NuGet Package restore failed for project Application\BEL.FeedbackWorkflow: Unable to find version '1.5.2' of package 'WebGrease'.
  C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Package 'WebGrease.1.5.2' is not found on source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
  https://api.nuget.org/v3/index.json: Error downloading 'WebGrease.1.5.2' from 'https://api.nuget.org/v3-flatcontainer/webgrease/1.5.2/webgrease.1.5.2.nupkg'.
  Access to the path 'C:\Users\cloverspd1\.nuget\packages\webgrease\1.5.2\tools\WG.exe' is denied.
. Please see Error List window for detailed warnings and errors.				





我尝试过:



清理并重建solution.still问题。

"

What I have tried:

cleaned and rebuild the solution.still problem exists.

推荐答案

查看错误消息并检查引用文件丢失或无法访问的原因。如果所有其他方法都失败,请联系包裹的所有者。
Look at the error messages and check why the referenced file is missing or not accessible. If all else fails contact the owner of the package.


这篇关于Visual Studio 2019中的Nuget包还原失败。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆