117

Opening VS2010 today, the extension manager notified me of an update for NuGet Package Manager.

During the install, I get an 'Installation Failed' with an option to view the log.

The key error message I see in that log file is:

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 version numbers I am upgrading from/to are as follows.

Current Version: 1.5.20902.9026  
New Version: 1.6.21205.9031

I have also tried to install it while VS2010 is closed via this page: here

Atish Kumar Dipongkor
  • 10,220
  • 9
  • 49
  • 77
Valamas
  • 24,169
  • 25
  • 107
  • 177

4 Answers4

173

Update: The recently released NuGet 2.0 also may require uninstalling an older version of NuGet first.

From the NuGet 2.0 Release Notes: (http://docs.nuget.org/docs/release-notes/nuget-2.0)

Known Installation Issue

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, or to go directly to the VS hotfix.

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."

Ry-
  • 218,210
  • 55
  • 464
  • 476
Joe Doyle
  • 6,363
  • 3
  • 42
  • 45
  • 38
    Confirmed this works. Launched VS2010 with admin privs. Opened extension manager. Uninstalled NuGet. Restarted VS2010 as admin. Opened extension manager. Searched online gallery for NuGet. Installed, restarted VS2010 as admin. Confirmed working. Restarted VS2010 as normal user. Thanks! – Christopher Dec 13 '11 at 12:54
  • You might want to uninstall it from extension manager instead of system uninstall. To me, using system uninstall still leaves it as installed in extension manager. – h--n Mar 09 '12 at 12:21
  • I did not see NuGet on Add/Remove and 'Uninstall' are disabled on VS for this package... :( How can I upgrade? – Dmitry Gusarov Sep 18 '12 at 16:15
  • 2
    FYI - When installing the hotfix for VS2010 Ultimate, I ran the exe as Administrator and it took a while to complete. It looked like it had hung but took maybe 5 minutes. – Ralph Willgoss Oct 03 '12 at 14:02
  • Note that what *doesn't* work is uninstalling "NuGet" via the control panel. That just removes it from the control panel installed programs list, but doesn't remove it from VS. – Jules Dec 15 '12 at 17:19
  • 1
    +1. Worked after applying the [hot fix](http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654) – Victor Zakharov Feb 07 '13 at 18:32
7

Here is the VisualStudio/Express hotfix for this issue... http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=38654

There's not much on the page describing what it's for, but it's linked to from here that does provide some description... http://connect.microsoft.com/VisualStudio/Downloads

I have installed this hotfix on both the Professional (on Win 7 Pro 32 bit) and Express versions (on Windows 7 Ultimate 64 bit) and the NuGet update behaves as it should.

StarTrekRedneck
  • 1,957
  • 1
  • 15
  • 15
2

When i originally had the problem, Joe Doyle's answer solved it.

However, going to version 1.8, I cannot see a listing for nuget in Programs and Features.

So from within Visual Studio / Tools / Extension Manager.
Uninstalled NUGET.
Restarted VS Return to the Extension manager and install NUGET.

Valamas
  • 24,169
  • 25
  • 107
  • 177
0

After uninstalling Nuget from Control panel, Go to C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\ or the location matching similar pattern based upon windows bit version, and delete the folder 1.0.11220.104. And, if you install it now, you wont' get the same problem.

NoNaMe
  • 6,020
  • 30
  • 82
  • 110
playwithtime
  • 1
  • 1
  • 3