简体   繁体   中英

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!

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 (eg, via Tools->Get Tools and Features... ). Modify your currently installed product. You can find the NuGet package manager under the Individual components tab.

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:

在此处输入图片说明

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 .

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)

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

在此处输入图片说明

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.

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..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM