sam
sam

Reputation: 175

Can't find the nuget package manager in visual studio 2017?

I installed package installer from Tools->Extensions and Updates . I tried searching in the tools menu, couldn't find install nuget package option. Also if I right click on the project, there is an option Quick Install Package, In the box there I fill in the nuget package I want to add in my project (openBLAS in my case) and it says, Visual studio needs to restart .

Iam working in Visual C++ win32 console application and tried finding the nuget package manager for other projects as well.

I restarted my visual studio and even my PC too, but still couldn't find it. Please help!

Upvotes: 15

Views: 30322

Answers (5)

I was using Visual Studio 2017 Community and couldn't find the NuGet Pkg Manager in the Tool menu. I went to Tools->Extensions & Updates... Selected Visual Studio Update and that launched the Visual Studio Installer. After it run the update the NuGet Package Manager menu was added..

Upvotes: 0

Mark Uebel
Mark Uebel

Reputation: 153

My experience with VS2017 is that NuGet Package Manager was not automatically installed. It had to be selected via the VS Installer:

enter image description here

Failing to select/install these on the initial install, I had to go back and add/install them later. However, after installing, the Package Sources in the NuGet Package Manager were limited to "Microsoft Visual Studio Offline Packages" and package restore would not function correctly. Following the suggestion of @ndreisg, I deleted the Nuget.config file. Then upon restart of VS2017, everything worked, and I was able to restore packages to an existing solution.

Upvotes: 0

ndreisg
ndreisg

Reputation: 1179

This worked for me:

Delete %AppData%\NuGet\Nuget.config then Restart Visual Studio

(Deleting the Nuget.config forces VS to create a new config file, this can solve many different problems depending on what was broken in your config file)

Upvotes: 6

Nandee
Nandee

Reputation: 638

It's not installed by default(as far as I know) you have to select It in the Visual Studio Installer manually.

First open up your Visual Studio installer (e.g., via Tools->Get Tools and Features...). Modify your currently installed product. You can find the NuGet package manager under the Individual components tab.

Upvotes: 25

Leo Liu
Leo Liu

Reputation: 76760

Can't find the nuget package manager in visual studio 2017?

As per nuget blog:

Starting with NuGet 4.0 in Visual Studio 2017, the NuGet Package Manager will be shipped as a part of Visual Studio, and newer versions will not be available for download from the VS extensions gallery. NuGet updates will be pulled in automatically along with other Visual Studio updates.

So the NuGet Package Manager extension is already built-in Visual Studio 2017, do not have to install or update it.

After install the Visual Studio 2017, you can use nuget package manager directly. Right click on the project, there is an option Manager NuGet packages..., In the Browse there filled in the openBLAS nuget package, then select the package version and install it:

enter image description here

Besides, you can also install the nuget package by NuGet commands directly within Visual Studio, for more detail information you can refer to the NuGet Documentation.

Upvotes: 5

Related Questions