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?
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.
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.
NuGet.exe is installed as part of TFS Build and is located in the %ProgramFiles%/Microsoft Team Foundation Server 12.0/Tools folder.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With