Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Nuget 4 installed

Visual Studio 2017 comes with Nuget 4.0.0. However, it's not placed on the path. Where can I find the nuget executable to use the CLI?

like image 324
Martijn Avatar asked Mar 29 '17 07:03

Martijn


People also ask

Where is NuGet installed?

The global-packages folder is where NuGet installs any downloaded package. config, packages are installed to the global-packages folder, then copied into the project's packages folder. Windows: %userprofile%\. nuget\packages.

Where is my Nuspec file?

The current nuspec. xsd schema file can be found in the NuGet GitHub repository. All XML element names in the . nuspec file are case-sensitive, as is the case for XML in general.

Where is the NuGet exe located windows?

NuGet.exe is installed as part of TFS Build and is located in the %ProgramFiles%/Microsoft Team Foundation Server 12.0/Tools folder.

Where do Nupkg files go?

Copy the . nupkg file to a local folder. Add the folder to your package sources using the nuget sources add -name <name> -source <path> command (see nuget sources). Note that you need only set this local source once on any given computer.


1 Answers

Visual Studio 2017 doesn't use NuGet.exe but instead uses an extension of NuGet to achieve this. You should be able to find the extension in this path:

C:\Program Files (x86)\Microsoft Visual Studio\2017\<VSEdition>\Common7\IDE\CommonExtensions\Microsoft\NuGet

... where <VSEdition> is the version of Visual Studio being used, for example Community or Enterprise.

If you want to use the CLI, you'll have to download it separately. Here is a link explaining the same.

like image 79
P.Rao Avatar answered Oct 01 '22 19:10

P.Rao