i am in the process of installing a big C# project and i was told to upgrade nuget from 3.3 to 3.4 or above first.
I downloaded nuget extension (VS 2015 VSIX v3.4.4) and tried to install it, i got this:
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)
I tried another way - from within VS2015, Tools -> Extensions and Updates, found existing nuget and tried to uninstall it first, I got:
The process cannot access the file because it is being used by another process.
I whipped out "Process explorer" and found that two processes used nuget: chrome and devenv.exe. devenv is a process with VS2015 instance. Anyway I exited VS2015, even chrome, no help, same error message as the one when installing the extension.
Other things I tried:
I found that nuget being used is at "C:\Program Files (x86)\NuGet", I replace the existing one with a new version of nuget.exe, as well as nuget.tools under C:\Program Files (x86)\NuGet\Visual Studio 2015, then I started VS again still get the same message
The process cannot access the file because it is being used by another process.
I removed the packages folder under the project as well as that under /.nuget, didn't help.
I googled and found this link but it didn't help solve the problem either. I admit that I am at my wit's end.