简体   繁体   English

无法恢复 NuGet package 访问被拒绝

[英]Failed to restore NuGet package Access denied

I started working on one project that was not written by me, he was on bitbucket, pulled it to his computer and I can not restore the packages nugget gives an error.我开始做一个不是我写的项目,他在 bitbucket 上,把它拉到他的电脑上,我无法恢复包块给出了错误。

Failed to restore NuGet package for **** project: Access denied on path "... \ packages \ Microsoft.AspNet.WebApi.Client.ru.5.2.7 \ .signature.p7s"

and there are 20 such errors for each of the NuGet packages the error is with signature.p7s.每个 NuGet 包都有 20 个此类错误,错误与 signature.p7s 相关。

I found the answer that you need to reinstall packages, but when uninstalling, the same error occurs and visual studio does not allow you to remove them.我找到了您需要重新安装软件包的答案,但是在卸载时,会发生相同的错误,并且 Visual Studio 不允许您将其删除。

Visual Studio needs administration access to R/W files. Visual Studio 需要对 R/W 文件的管理访问权限。 As your error says "Access denied" Visual Studio doesn't have admin permission.正如您的错误所说“拒绝访问”,Visual Studio 没有管理员权限。

Try to open with Administrator.尝试使用管理员打开。 Right click ok VS and "Run as administrator".右键单击确定 VS 和“以管理员身份运行”。

Reinstalling Visual studio on this pc helped me在这台电脑上重新安装 Visual Studio 帮助了我

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM