Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NuGet upgrade issue

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?

like image 339
gfrizzle Avatar asked Jun 27 '11 17:06

gfrizzle


People also ask

Can't update NuGet packages?

Open NuGet Package Manager, go to the package, and uninstall (it should show the new version that you modified the packages. config file to). In NuGet Package Manager, go to the browse tab, find the package you just uninstalled, then install it again.

How do I update NuGet to latest version?

Right-click the Packages folder in the project, and select Update. This will update the NuGet package to the latest version. You can double-click the Add packages and choose the specific version.

Should you update NuGet packages?

Well, you should update whenever you are able to cope with it. So you need to think carefully about the regression updating the packages could cause to your application if already in production, or the extra tests you are going to need to carry on in order to verify everything seems to be working as expected.

How do I update NuGet by itself?

If there's an update and the solution is opened, nuget.exe will be removed from the solution. You could automatically update nuget.exe on restore by modifying the . nuget\nuget. targets to add the above command.


1 Answers

  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!

like image 84
juFo Avatar answered Sep 26 '22 00:09

juFo