我下载了nuget extension(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)
The process cannot access the file because it is being used by another process.
我突然打开了“Process explorer”,发现有两个进程使用了nuget:chrome和devenv.exe。devenv是一个带有VS2015实例的进程。无论如何,我退出了VS2015,即使是chrome,也没有帮助,错误消息与安装扩展时相同。
我试过的其他事情:
我发现正在使用的nuget位于“C:\Program Files(x86)\nuget”,我用nuget的新版本替换了现有版本。exe和nuget。在C:\Program Files(x86)\NuGet\Visual Studio 2015下的工具,然后我再次启动VS,仍然收到相同的消息
我删除了项目下的packages文件夹以及/下的packages文件夹。努吉,没有帮助。
我在谷歌上找到了这个
link