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.