Nuget Problems

Topics: General
Jul 3, 2012 at 11:43 AM

I wanted to upgrade to the latest version. I'm hoping someone can help with this, or at least fix the bug so it doesn't happen to others. Background info - Visual Studio is installed on i:\ on my machine, not C:\  The i:\ drive is an SSD. Perhaps that is relevant.

I uninstalled nuget using Programs>Uninstall via Control Panel (could not be done via Extension manager). Then I downloaded vsix file and that failed to install for Visual Studio Ultimate.

The Extension Manager is a mess. It still lists Nuget as installed, but with the uninstall and disable buttons greyed out.

The Extension Manager is now not communicating online. In fact, the normal news feed of Visual Studio is not woring either. Somehow, trying to upgrade Nuget has messed up Visual Studio's ability to communicate with the Internet.

This is the log for the failed installation of the vsix file. I hope it is meaningful to someone:

3/07/2012 8:08:05 PM - Microsoft Visual Studio Extension Installer
3/07/2012 8:08:05 PM - -------------------------------------------
3/07/2012 8:08:05 PM - Initializing Install...
3/07/2012 8:08:05 PM - Extension Details...
3/07/2012 8:08:05 PM -     Identifier      : NuPackToolsVsix.Microsoft.67e54e40-0ae3-42c5-a949-fddf5739e7a5
3/07/2012 8:08:05 PM -     Name            : NuGet Package Manager
3/07/2012 8:08:05 PM -     Author          : Microsoft Corporation
3/07/2012 8:08:05 PM -     Version         : 2.0.30619.9119
3/07/2012 8:08:05 PM -     Description     : A collection of tools to automate the process of downloading, installing, upgrading, configuring, and removing packages from a VS Project.
3/07/2012 8:08:05 PM -     Locale          : en-US
3/07/2012 8:08:05 PM -     MoreInfoURL     : http://docs.nuget.org/
3/07/2012 8:08:05 PM -     InstalledByMSI  : False
3/07/2012 8:08:05 PM -     MinFramework    : 4.0
3/07/2012 8:08:05 PM -     MaxFramework    : 4.0
3/07/2012 8:08:05 PM -
3/07/2012 8:08:05 PM -     Supported Visual Studio Editions :
3/07/2012 8:08:05 PM -         Version : 10.0
3/07/2012 8:08:05 PM -             Pro
3/07/2012 8:08:05 PM -             IntegratedShell
3/07/2012 8:08:05 PM -             VWDExpress
3/07/2012 8:08:05 PM -             VPDExpress
3/07/2012 8:08:05 PM -         Version : 11.0
3/07/2012 8:08:05 PM -             Pro
3/07/2012 8:08:05 PM -             IntegratedShell
3/07/2012 8:08:05 PM -             VWDExpress
3/07/2012 8:08:05 PM -             VPDExpress
3/07/2012 8:08:05 PM -             VSWinExpress
3/07/2012 8:08:05 PM -
3/07/2012 8:08:05 PM -     Supported Isolated Shells :
3/07/2012 8:08:05 PM -
3/07/2012 8:08:05 PM -     References      :
3/07/2012 8:08:05 PM -
3/07/2012 8:08:05 PM - Searching for applicable products...
3/07/2012 8:08:05 PM - Found installed product - Microsoft Visual Studio 2010 Ultimate
3/07/2012 8:08:05 PM - The extension will be upgraded from version 1.2.20325.9034.
3/07/2012 8:08:05 PM - Found installed product - Microsoft Visual Studio 2010 Express for Windows Phone
3/07/2012 8:08:05 PM - An extension with a matching Identifier is already installed to this product.
3/07/2012 8:08:07 PM - The following target products have been selected...
3/07/2012 8:08:07 PM -     Microsoft Visual Studio 2010 Ultimate
3/07/2012 8:08:07 PM -
3/07/2012 8:08:07 PM - Verifying matching extension signatures before updating...
Installed Extension Path: I:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.2.20325.9034\
Update Extension Path: c:\cdrive\downloads\nuget.tools.vsix
3/07/2012 8:08:07 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.
   at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension)
   at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)
3/07/2012 8:08:07 PM - 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)

 

Developer
Jul 3, 2012 at 3:50 PM

That's a known VS installation issue (http://docs.nuget.org/docs/release-notes/nuget-2.0#Known_Installation_Issue). Try installing the hotfix listed in the docs.

Also, the easiest way to force uninstall an extension is to delete it's directory - in your case "I:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.2.20325.9034\"

Jul 6, 2012 at 1:37 AM

Thanks pranavkm,

I already knew about the known issue (no pun intended). The forced uninstall was the key thing that fixed my problem. I did not know you could do that. It is the only way I could uninstall nuget (which is kinda a "fail" on nuget's part). A uniform, solid and stable uninstallation path is a must.

Developer
Jul 6, 2012 at 4:42 PM

Well, we aren't quite involved in any of the installation \ uninstallation process. The VSIX installer is responsible for handling it. In particular I have no idea why VS grays out the uninstall button. The signature verification error that pops up is again an issue with VS 2010 SP1 that we can do really nothing about. 

Coordinator
Jul 9, 2012 at 4:50 PM

I believe the uninstall button is grayed out because it requires running Visual Studio as an administrator.

Jul 10, 2012 at 12:06 PM

Thanks guys.