Nuget 添加包提供访问被拒绝错误 [英] Nuget add packages gives access denied errors

查看:65
本文介绍了Nuget 添加包提供访问被拒绝错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我通过 Visual Studio 2015 GUI 添加 Nuget 包时,某些包无法安装并出现以下错误

When I add Nuget packages via the Visual Studio 2015 GUI some packages don't install with the following error

对路径Microsoft.DotNet.InternalAbstractions.dll"的访问被拒绝.

Access to the path 'Microsoft.DotNet.InternalAbstractions.dll' is denied.

我尝试以管理员身份运行 Visual Studio 2015 并卸载软件包并再次添加它们,但我仍然遇到相同的错误

I tried running Visual Studio 2015 as Administrator and uninstalling the packages and adding them again but I still get the same error

推荐答案

我关闭了 Visual Studio 并终止了 2 个名为 dotnet 的正在运行的进程,并删除了 C:\Users\myser.nuget\packages 文件夹以确保所有包都在重新下载以防万一损坏.

I closed Visual Studio and killed the 2 running processes called dotnet as well as deleted the C:\Users\myser.nuget\packages folder to ensure all packages are redownloaded again in case something was corrupt.

这篇关于Nuget 添加包提供访问被拒绝错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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