Can’t upgrade to NuGet Package Manager 1.8?

Just about to add a new package into VS2010SP1 using NuGet Package Manager when it said there was an upgrade to NuGet 1.8 available. Once I clicked update and had the downloading/installing window going all look well, restarted VS2010 as prompted on the button, but then had an error saying the upgrade didn’t work and click the link in bottom LHS for more information. Tried again, thinking it had got 1/2 way, same result, no change.

There was a popup winddow, (sorry missed the screenshot) but in the bottom left hand corner of this error window was a link to an error log which this:

24/05/2012 2:06:42 PM - The following target products have been selected... 
24/05/2012 2:06:42 PM -  Microsoft Visual Studio 2010 Professional 
24/05/2012 2:06:42 PM - 
24/05/2012 2:06:42 PM - Verifying matching extension signatures before updating... Installed Extension Path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.7.30402.9028\ Update Extension Path: c:\users\rdyball\downloads\nuget.tools.vsix 24/05/2012 2:06:42 PM - VSIXInstaller.SignatureMismatchException: The signature on the update version of 'NuGet Package Manager' does not match the signature on the installed version. Therefore, Extension Manager cannot install the update. 
The fix turned out to be to uninstall NuGet manually from Control Panel, and also go to Windows Explorer, to the directory shown in the log:

         C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\

and then delete the “NuGet Package Manager” folder + contents.

Now just reinstall NuGet.Tools.vsix and all should be well again.

Advertisements