Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nuget CLI in Visual Studio 2017 - How to run?

According to the page at: https://dist.nuget.org/index.html

NuGet 4.x is included in the Visual Studio 2017 installation. Latest NuGet releases are delivered as part of Visual Studio updates.

Batteries are included!

No matter whether I open a Visual Studio 2017 command prompt or the Nuget console itself, running the 'nuget' command results in command not found.

How can I run the nuget CLI with Visual Studio 2017? What am I missing?

like image 416
Mike Cheel Avatar asked Apr 10 '17 15:04

Mike Cheel


People also ask

How do I run a NuGet command?

To use any command, open a command window or bash shell, then run nuget followed by the command and appropriate options, such as nuget help pack (to view help on the pack command). This documentation reflects the latest version of the NuGet CLI.

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 NuGet console in Visual Studio?

Opening the console and console controls Open the console in Visual Studio using the Tools > NuGet Package Manager > Package Manager Console command.


1 Answers

Although it says "Batteries are included" on the page you have mentioned, that only refers to how the NuGet package manager is integrated with Visual Studio 2017. The other downloads on that page are for Visual Studio 2013-2015.

If you want the command line nuget.exe in order to create NuGet packages, that is still a separate download on the page you mentioned: https://dist.nuget.org/index.html

like image 57
Matt Frear Avatar answered Oct 18 '22 20:10

Matt Frear