Composition Exception raised when consuming Nuget services within Visual Studio

Topics: Ecosystem, General
Jan 9, 2013 at 10:15 PM

Related to:

If you programmatically create a solution and add a template to the solution that does not have a Nuget Wizard in its .vstemplate, then try and get the IVsPackageInstaller or IvsPackageInstallerServices from the Component Model the linked exception occurs.

If you add a template which has a Nuget Wizard, where nuget is already installing packages, then this error does not occur.

Please advise.  I need to install packages into projects that may not have already had Nuget Wizard packages added.