NuGet upgrade issue

gfrizzle picture gfrizzle · Jun 27, 2011 · Viewed 27k times · Source

I have the version of NuGet that comes with MVC3 (1.0), but when I try to upgrade to the latest version (currently 1.4) it failes and I get this in the log file:

6/27/2011 1:25:08 PM - VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature. Therefore, Extension Manager cannot install the update. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

6/27/2011 1:25:08 PM - Install Error : VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature. Therefore, Extension Manager cannot install the update. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

6/27/2011 1:26:27 PM - VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version has an invalid signature. Therefore, Extension Manager cannot install the update. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

I even tried uninstalling NuGet (via Add or Remove Programs) and installing 1.4 manually, but I inexplicably get the same message. Any idea what I'm doing wrong?

Answer

juFo picture juFo · Dec 28, 2011
  1. Close all visual studio 2010 instances.
  2. Open visual studio again as administrator
  3. Go to "Tools" > "Extension Manager"
  4. Uninstall NuGet
  5. Install NuGet again.

if you are not able to uninstall it go to:

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

and remove this folder. deleting this is at your own risk!