NuGet version
https://stackoverflow.com/questions/15964935/get-nuget-exe-version-from-command-line
Typing nuget help from the command line will in addition to the expected help information also list the current NuGet.exe version.
?
從官網下載,然后直接放在C:\Windows目錄下。因為這個目錄默認是在環境變量里的。這樣就可以直接從cmd中使用。
?
?
C:\WINDOWS\system32>nuget help
NuGet Version: 4.9.3.5777
usage: NuGet <command> [args] [options]
Type 'NuGet help <command>' for help on a specific command.
Available commands:
add Adds the given package to a hierarchical source. http sources are not supported. For more info, goto
https://docs.nuget.org/consume/command-line-reference#add-command.
config Gets or sets NuGet config values.
delete Deletes a package from the server.
help (?) Displays general help information and help information about other commands.
init Adds all the packages from the <srcPackageSourcePath> to the hierarchical <destPackageSourcePath>. h
ttp feeds are not supported. For more info, goto https://docs.nuget.org/consume/command-line-referen
ce#init-command.
install Installs a package using the specified sources. If no sources are specified, all sources defined in
the NuGet configuration file are used. If the configuration file specifies no sources, uses the defa
ult NuGet feed.
list Displays a list of packages from a given source. If no sources are specified, all sources defined in
%AppData%\NuGet\NuGet.config are used. If NuGet.config specifies no sources, uses the default NuGet
feed.
locals Clears or lists local NuGet resources such as http requests cache, temp cache or machine-wide global
packages folder.
pack Creates a NuGet package based on the specified nuspec or project file.
push Pushes a package to the server and publishes it.
NuGet's default configuration is obtained by loading %AppData%\NuGet\NuGet.config, then loading any
nuget.config or .nuget\nuget.config starting from root of drive and ending in current directory.
restore Restores NuGet packages.
setApiKey Saves an API key for a given server URL. When no URL is provided API key is saved for the NuGet gall
ery.
sign Signs a NuGet package with the specified certificate.
sources Provides the ability to manage list of sources located in %AppData%\NuGet\NuGet.config
spec Generates a nuspec for a new package. If this command is run in the same folder as a project file (.
csproj, .vbproj, .fsproj), it will create a tokenized nuspec file.
trusted-signers Provides the ability to manage the list of trusted signers.
update Update packages to latest available versions. This command also updates NuGet.exe itself.
verify Verifies a signed NuGet package.
For more information, visit http://docs.nuget.org/docs/reference/command-line-reference
?
轉載于:https://www.cnblogs.com/chucklu/p/10394239.html
總結
以上是生活随笔為你收集整理的NuGet version的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux基础命令---文本显示od
- 下一篇: WeStrom自定义设置修改快捷键