【发布时间】:2018-01-15 04:19:06
【问题描述】:
我正在安装一个大型 C# 项目,有人告诉我先将 nuget 从 3.3 升级到 3.4 或更高版本。
我下载了 nuget 扩展(VS 2015 VSIX v3.4.4)并尝试安装它,我得到了这个:
8/7/2017 2:04:32 PM - Upgrading 'NuGet Package Manager for Visual Studio 2015', version 3.3.0.167 to version 3.4.4.1321.
8/7/2017 2:04:41 PM - Install Error : System.IO.IOException: The process cannot access the file because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
我尝试了另一种方法-从VS2015中,工具->扩展和更新,找到现有的nuget并尝试先将其卸载,我得到了:
The process cannot access the file because it is being used by another process.
我打开“进程资源管理器”,发现有两个进程使用了 nuget:chrome 和 devenv.exe。 devenv 是一个带有 VS2015 实例的进程。无论如何我退出了VS2015,甚至chrome,没有帮助,与安装扩展时的错误消息相同。
我尝试过的其他事情:
我发现正在使用的 nuget 位于“C:\Program Files (x86)\NuGet”,我将现有的替换为新版本的 nuget.exe,以及 C:\Program Files 下的 nuget.tools (x86)\NuGet\Visual Studio 2015,然后我再次启动 VS 仍然得到相同的消息
The process cannot access the file because it is being used by another process.
我删除了项目下的packages文件夹以及/.nuget下的文件夹,没有帮助。
我用谷歌搜索并找到了这个link,但它也无助于解决问题。我承认我已经无计可施了。
【问题讨论】:
-
您是否启用了磁盘加密?
-
这是办公室电脑,我不这么认为但不确定,我怎么知道?
-
询问您的基础架构人员。
-
@J.E.Y,这个问题呢?请告诉我有关此问题的最新信息吗?
-
@Leo-MSFT,非常感谢您的详细解释和指导和跟进。抱歉,我还没有机会检查它们,今天会做,让你知道。 BTW,你和微软有关系吗?
标签: c# visual-studio-2015 nuget process-explorer