Where is nuget.exe?

Viewed 99287

I'm using Visual Studo 2015 and I have Package Manager Console where I can run like

PM> Install-Package Newtonsoft.Json

Visual Studio seems to come with nuget, but what is the location of nuget.exe?

Or Package Manager Console doesn't use nuget.exe?

2 Answers

Visual Studio 2015 uses various NuGet assemblies but it does not itself include NuGet.exe.

NuGet.exe can be downloaded from the NuGet web site:

https://www.nuget.org/downloads

Another great option nowadays is to use winget (if you have Windows 10 v1709 or greater). In the Command Prompt, enter:

winget install Microsoft.NuGet

(below follows some extra information for the curious mind) This will:

  1. Install the official nuget.exe in your PC.
  2. Create a Symbolic Link here: %localappdata%\microsoft\winget\links
  3. Make the nuget.exe globally available for your user to call it from anywhere, since the aforementioned directory should be present in your user's PATH variable.
Related