Raif
Raif

Reputation: 9249

VS2012 Enable NuGet Package Restore disappears, missing

I have two projects ones a class library and ones an mvc3 project. They both have nuget packages associated with them. On the class library when I right click the solution I get the "Enable NuGet Packges Restore" option

enter image description here

In the MVC one I do not.

enter image description here

needless to say I would like the feature for both projects. what am I doing wrong?

Upvotes: 30

Views: 20515

Answers (2)

Kinetic
Kinetic

Reputation: 740

For me it was as simple as:

"Manage NuGet Packages for Solution" -> "Restore" (top right of dialog)

Upvotes: 2

Xavier Decoster
Xavier Decoster

Reputation: 14810

The NuGet package restore context menu item is hidden when the extension detects the presence of a $(SolutionDir).nuget folder containing the nuget.exe, nuget.config and nuget.targets needed to perform package restore.

The MVC app already has these, so restore should be enabled. If not, simply delete the .nuget folder and you'll see the menu item reappear.

Upvotes: 39

Related Questions