Get NuGet.exe version from command-line

纵然是瞬间 提交于 2019-12-03 09:18:35

Typing nuget help from the command line will in addition to the expected help information also list the current NuGet.exe version.

Niraj Trivedi

To know which version of NuGet is installed use follow steps

  • In Visual Studio, use the Help > About Microsoft Visual Studio command and look at the version displayed next to NuGet Package Manager.

  • Alternatively, launch the Package Manager Console (Tools > NuGet Package Manager > Package Manager Console) and enter $host to see information about NuGet including the version.

Windows Powershell:

nuget help | select -First 1


Command line (cmd.exe) | Package Manager Console in Visual Studio
1.) nuget ? v
2.) nuget help v

The "v" command is actually not valid, but with this approach you only get the nuget version number and below the information that "v" is an unknow command.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!