How to enable nugets package restore in Visual Studio 2015?

boop picture boop · Jan 24, 2015 · Viewed 51.3k times · Source

How do I enable the nuget package restore feature in Visual Studio 2015?

The feature is just missing in my context menu (Yes - I've double checked that I try it on the solution instead of a project)

My only project is a .NET 4.5 console application - there is no .nuget folder yet. There is an actual nuget package installed.

Answer

Martin Shishkov picture Martin Shishkov · Jun 18, 2015

I had the same problem as you and the way I solved it was to delete the packages folder from my solution and also bin and obj folders from every project in the solution and give it a rebuild.