Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update NuGet 1.6 keeps failing

I use VS10 and recently NuGet1.6 came out and I tried to do normal update and it kept failing with the following message,

"Install Error : 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. at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension) at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID) "

Then I read somewhere someone said just uninstall NuGet and re-install it, well I uninstalled NuGet in the Control Panel of Windows, because the Uninstall button of NuGet in VS10 is grayed out (why is this the case?). But still could not install NuGet1.6, it run into the same error. Could someone help please!

Thanks.

like image 980
Ray Avatar asked Dec 21 '11 00:12

Ray


People also ask

How do I Update my local NuGet package?

Invoke the Package Manager dialog (select Tools > NuGet Package Manager > Manage NuGet Packages for Solution). Go to the Updates tab. Select the packages you want to update (or use the Select all packages to update all packages) and click Update.

How do I reinstall NuGet package manager?

Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.

Where is NuGet EXE located?

The latest recommended NuGet CLI is always available at https://dist.nuget.org/win-x86-commandline/latest/nuget.exe .


2 Answers

You might need to Run Visual Studio 2010 As Administrator in order to get the NuGet 1.6 extension installed.

I agree that it is silly that the upgrade from within VS2010 doesn't work. I have tried this several times across several machines (a home workstation without any restrictions, a work machine with tied down profiles) and it always fails.

like image 163
James Webster Avatar answered Oct 16 '22 22:10

James Webster


There is a known issue when upgrading NuGet to 1.6 from an older version when running Visual Studio SP1. From the NuGet 1.6 Release Notes:

If you are running VS 2010 SP1, you might run into an installation error when attempting to upgrade NuGet if you have an older version installed.

The workaround is to simply uninstall NuGet and then install it from the VS Extension Gallery. See http://support.microsoft.com/kb/2581019 for more information.

Note: If Visual Studio won't allow you to uninstall the extension (the Uninstall button is disabled), then you likely need to restart Visual Studio using "Run as Administrator."

like image 21
Daniel Schaffer Avatar answered Oct 16 '22 23:10

Daniel Schaffer