当我通过 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 添加包提供访问被拒绝错误
发布评论