I am unable to update or uninstall the NuGet Package Manager for Visual Studio 2012. I've looked around to several solutions, but have not found one that works.
Running Visual Studio 2012 as the administrator...
Attempting to update the NuGet Package Manager fails, and I get this error dialog with the following at the end of the log:
2/5/2013 10:38:09 AM - Beginning to install extension to Microsoft Visual Studio Ultimate 2012... 2/5/2013 10:38:09 AM - Upgrading 'NuGet Package Manager', version 2.0.30625.9003 to version 2.2.31210.9045. 2/5/2013 10:38:10 AM - 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) at System.IO.__Error.WinIOError() at System.IO.File.InternalMove(String sourceFileName, String destFileName, Boolean checkHost) at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.AtomicallyDeleteFiles(IEnumerable
1 filePaths, Boolean justMarkForDeletion) at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.DeleteDiscoverableFiles(IInstalledExtension extension) at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.UninstallInternal(IInstalledExtension extension, Boolean forceDelete) at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.CommitInstalledAndUninstalledExtensions(IEnumerable
1 installedExtensions, IEnumerable1 uninstalledExtensions, IEnumerable
1 packComponentChanges) at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.BeginInstall(IInstallableExtension installableExtension, Boolean perMachine, AsyncOperation asyncOp) at Microsoft.VisualStudio.ExtensionManager.ExtensionManagerService.InstallWorker(IInstallableExtension extension, Boolean perMachine, AsyncOperation asyncOp)
Followed by a popup telling me:
The process cannon access the file because it is being used by another process.
When I attempt to uninstall the extension first (per some solutions) I receive the same pop-up message as above, telling me the process is being used!
Steps I've made in my attempts to get this working:
- I've restarted VS2012 multiple times, with and without projects loaded.
- I've rebooted the computer several times and started nothing other then VS2012.
- I've downloaded the NuGet installer from the web and tried to install it w/o starting VS2012 (first thing after reboot).
For step #3, I receive the same series of dialogs/errors as when attempting to update inside Visual Studio 2012.
I can't get the latest version, no matter what I try! Does anyone have another trick?
I've also noticed that NuGet is just plain not working right now. Neither the "Package Manager Console" or the "Package Manager Settings" do anything.
Source:
This is what helped me:
I have VS 2013 Pro installed. What solved this problem for me was to restart into safe mode and re-install NuGet there.
You may also want to look into Adam D's post in the link below (the add-in was blocked by anti-malware software):
Can't Update or Uninstall NuGet Package Manager in VS2012
I'm using VS2010, I ended up fixing this problem by uninstalling NuGet Package Manager via the "Add Remove Programs", and then deleting this directory:
I could then run the NuGet.Tools.vsix thing ok.
I found a solution for this issue at - https://kc.mcafee.com/corporate/index?page=content&id=KB85636&snspd-1015&locale=en_GB&viewlocale=en_GB
Cause:
The Microsoft Visual Studio (VS) process devenv.exe must be excluded in the EEFF/FRP process exclusion registry key.
Solution: Users with this issue must contact Intel Security Technical Support and quote this article number for assistance with adding the devenv.exe process to the correct EEFF/FRP process exclusion registry key.