visual-studionuget

Where is nuget.exe?


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?


Solution

  • 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

    To run NuGet.exe you must place it into a folder that is on your path (e.g. C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\ or C:\Windows\System32) or in a folder of your choosing. If you place it into a folder that is not on your path, then you must add that folder to your path or specify the entire path when running it. Running nuget.exe without any arguments will show help info. This article will also help: https://learn.microsoft.com/en-us/nuget/quickstart/create-and-publish-a-package-using-visual-studio-net-framework – qxotk Commented May 13, 2023 at 11:24