02 December 2011

NuGet GetExportedValue Error Fix

I love NuGet. I find package inter-dependency fights very frustrating: I just want to be developing not sorting out bickering versions. Imagine my horror then when I tried to access it and got the following error:

GetExportedValue cannot be called before prerequisite import 'NuGet.VisualStudio.VsPackageSourceProvider..ctor (Parameter="registrySettingsManager", ContractName="NuGet.VisualStudio.IPackageSourceSettingsManager")' has been set.


Then all subsequent clicks I get:
Internal error occurred. Additional information: ''."

The solution that fixed it for me was to delete the config file which in my case was empty:
C:\Users\[username]\AppData\Roaming\NuGet\NuGet.Config

Credit to ullmark for providing this answer: http://nuget.codeplex.com/discussions/263866

No comments:

Post a Comment