Can't use Library Package Manager->Add Library Package Reference

Mar 17, 2011 at 12:40 PM

Win7 x64 Pro, VS2010 2010 Version 10.0.30319.1 RTMRel
Microsoft .NET Framework Version 4.0.30319 RTMRel   Installed Version: Ultimate

Newly installed NuGet.

When I try to use Add Library Package Reference, I get a large error dialog (which, of course, I can't copy text from).

1) An item with the same key has already been added.

2) Could not finish composing object of type 'NuGet.VisualStudio.SolutionManager'.  The ...import ctor was not satisfied.

How can I fix this?

Developer
Mar 17, 2011 at 3:50 PM

Does it only happen with certain solutions or all projects? Can you try this build of nuget from our CI machine and see if it fixes it?

http://ci.nuget.org:8080/repository/download/bt16/1429:id/VisualStudioAddIn/NuGet.Tools.vsix

Mar 17, 2011 at 5:05 PM

It happens with all the projects I have tried it with.

How do I log in to TeamCity?

Developer
Mar 17, 2011 at 6:06 PM

You dont have to log in. Click on Log in as Guest

Mar 17, 2011 at 6:30 PM

Thanks, the new installation seems to be working.

Mar 18, 2011 at 4:56 PM

I'm having the same issue.  I attempted to install the referenced package, but get the following error when installing:

3/18/2011 8:52:46 AM - Microsoft Visual Studio Extension Installer
3/18/2011 8:52:46 AM - -------------------------------------------
3/18/2011 8:52:46 AM - Initializing Install...
3/18/2011 8:52:47 AM - Extension Details...
3/18/2011 8:52:47 AM - 	Identifier      : NuPackToolsVsix.Microsoft.67e54e40-0ae3-42c5-a949-fddf5739e7a5
3/18/2011 8:52:47 AM - 	Name            : NuGet Package Manager
3/18/2011 8:52:47 AM - 	Author          : Outercurve Foundation
3/18/2011 8:52:47 AM - 	Version         : 1.2.20316.7
3/18/2011 8:52:47 AM - 	Description     : A collection of tools to automate the process of installing, upgrading, configuring, and removing packages from a VS Project.
3/18/2011 8:52:47 AM - 	Locale          : en-US
3/18/2011 8:52:47 AM - 	MoreInfoURL     : http://nuget.codeplex.com/documentation
3/18/2011 8:52:47 AM - 	InstalledByMSI  : False
3/18/2011 8:52:47 AM - 	MinFramework    : 4.0
3/18/2011 8:52:47 AM - 	MaxFramework    : 4.0
3/18/2011 8:52:47 AM - 
3/18/2011 8:52:47 AM - 	Supported Visual Studio Editions : 
3/18/2011 8:52:47 AM - 		Version : 10.0
3/18/2011 8:52:47 AM - 			Pro
3/18/2011 8:52:47 AM - 
3/18/2011 8:52:47 AM - 	Supported Isolated Shells : 
3/18/2011 8:52:47 AM - 
3/18/2011 8:52:47 AM - 	References      : 
3/18/2011 8:52:47 AM - 
3/18/2011 8:52:47 AM - Searching for applicable products...
3/18/2011 8:52:47 AM - Found installed product - Microsoft Visual Studio 2010 Ultimate
3/18/2011 8:52:47 AM - The extension will be upgraded from version 1.1.229.160.
3/18/2011 8:52:47 AM - Found installed product - Microsoft Visual Studio 2010 Shell - Integrated Mode
3/18/2011 8:52:49 AM - The following target products have been selected...
3/18/2011 8:52:49 AM - 	Microsoft Visual Studio 2010 Ultimate
3/18/2011 8:52:49 AM - 
3/18/2011 8:52:49 AM - Verifying matching extension signatures before updating...
Installed Extension Path: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft Corporation\NuGet Package Manager\1.1.229.160\
Update Extension Path: c:\users\wabreza\downloads\nuget.tools.vsix
3/18/2011 8:52:49 AM - VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version is not signed. Therefore, Extension Manager cannot install the update.
   at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension)
   at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)
3/18/2011 8:52:49 AM - Install Error : VSIXInstaller.SignatureMismatchException: The installed version of 'NuGet Package Manager' is signed, but the update version is not signed. Therefore, Extension Manager cannot install the update.
   at VSIXInstaller.Common.VerifyMatchingExtensionSignatures(IInstalledExtension installedExtension, IInstallableExtension updateExtension)
   at VSIXInstaller.InstallProgressPage.BeginInstallVSIX(SupportedVSSKU targetAppID)

Mar 18, 2011 at 5:01 PM

Uninstalled previous version first, now the installer package is installing and the issue seems to be fixed :)

Mar 18, 2011 at 7:46 PM

@wbreza: That is a known issue of VS 2010 SP1, which is well documented in our Known Issues page.