Nuget 添加包提供访问被拒绝错误

编程入门 行业动态 更新时间:2024-10-25 20:27:20
本文介绍了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 添加包提供访问被拒绝错误

本文发布于:2023-11-10 09:59:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575072.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:被拒   错误   Nuget

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!