Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 564
sam Avatar asked Mar 18 '17 14:03

sam


People also ask

How do I get NuGet in Visual Studio 2017?

Starting in Visual Studio 2017, NuGet and the NuGet Package Manager are automatically installed with any . NET-related workloads. Install it individually by selecting the Individual components > Code tools > NuGet package manager option in the Visual Studio installer.

How do I open the package manager console in Visual Studio 2017?

Open the project/solution in Visual Studio, and open the console using the Tools > NuGet Package Manager > Package Manager Console command.

Where is the NuGet package manager?

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

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.

like image 163
Nandee Avatar answered Sep 18 '22 07:09

Nandee


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.

like image 28
Leo Liu-MSFT Avatar answered Sep 22 '22 07:09

Leo Liu-MSFT