Nuget CLI in Visual Studio 2017 - How to run?

后端 未结 3 1664
一向
一向 2021-01-17 09:12

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

相关标签:
3条回答
  • 2021-01-17 10:07

    I think easier recreate assembly using new solution .NET Standard in Visual Studio 2017. I try change old .csproj file. But when I changed, I broken assembly. I used this link Create .NET standard packages with Visual Studio 2017. I hope this link NuGet is now fully integrated into MSBuild help.

    0 讨论(0)
  • 2021-01-17 10:08

    To use NuGet CLI, download the nuget.exe from https://www.nuget.org/downloads page Windows x86 Commandline section. Add the folder where you placed nuget.exe to your PATH environment variable. Open the command window or powershell anywhere and run any nuget command. Or you can use directly from the Visual Studio 2017 package manager console. (Visual Studio restart is required to get the PATH environment variable.) Here is the MS Docs for NuGet CLI

    0 讨论(0)
  • 2021-01-17 10:15

    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

    0 讨论(0)
提交回复
热议问题