Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Manage Nuget Package in VS 2015 grey out

Tags:

I want to use Nuget to download a package VS 2015 for Node.js project, however, it is grey out as shown below:

How to resolve it?

enter image description here

like image 627
william007 Avatar asked Oct 31 '15 02:10

william007


People also ask

Why is manage NuGet packages disabled?

The Add NuGet packages menu will be disabled if a project is not selected in the Solution window. Which is my guess as to why it is disabled for you. Update and Restore NuGet packages is available if a solution or project is selected.

How do I enable manage NuGet packages in Visual Studio?

NuGet Package ManagerIn Solution Explorer, right-click References and choose Manage NuGet Packages. If you want more information on the NuGet Package Manager, see Install and manage packages using Visual Studio. Accept any license prompts. If prompted to review changes, select OK.


2 Answers

This happened to me when I was running something in debug mode. Make sure you are not debugging any part of your solution or VS will not let you do anything with nuget packages.

like image 102
Steven Banks Avatar answered Oct 25 '22 12:10

Steven Banks


Same thing happened to me in VS2015. Just clear your solution once and restart your Visual Studio. It'll work. Up till now VS 2015 has been showing lots of problems.Hope for better updates.

like image 29
Prayas Tiwari Avatar answered Oct 25 '22 13:10

Prayas Tiwari