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

NuGet version的更多相关文章

  1. 使用BaGet 搭建私有nuget 服务器

    使用BaGet 搭建私有nuget 服务器 netNugetBaGet 引言 为了增强代码的安全性和企业团队开发的高效性,搭建私有的package 包管理服务器是很有必要的,搭建私有的类库管理服务有以 ...

  2. 获取 Nuget 版本号

    本文告诉大家通过命令行获取 Nuget 的版本号 在 Nuget 中没有 -version 和 -v 和 --version 等写法,只需要直接输入 nuget 在第一行就会显示版本号 nuget N ...

  3. How to fix nuget Unrecognized license type MIT when pack

    When I packaging license within the nupkg, I will using License to replace licentUrl. I using this c ...

  4. ASP.NET Core 共享第三方依赖库部署的正常打开方式

    曾经: 写了一篇: ASP.Net Core on Linux (CentOS7) 共享第三方依赖库部署 当第二次想做相同的事,却遇上了Bug,于是有了第二篇: ASP.NET Core 共享第三方依 ...

  5. VS2017安装或卸载错误1303

    为添加一个Python开发环境,运行Visual Studio Installer安装报错,下面是日志: 问题日志 安装出现问题. 可通过以下方式排查包故障问题: 1. 使用以下搜索 URL 来搜索针 ...

  6. 2019-3-1-获取-Nuget-版本号

    title author date CreateTime categories 获取 Nuget 版本号 lindexi 2019-3-1 9:27:6 +0800 2019-02-25 15:51: ...

  7. 2019-8-31-How-to-fix-nuget-Unrecognized-license-type-MIT-when-pack

    title author date CreateTime categories How to fix nuget Unrecognized license type MIT when pack lin ...

  8. .NET性能优化-推荐使用Collections.Pooled

    简介 性能优化就是如何在保证处理相同数量的请求情况下占用更少的资源,而这个资源一般就是CPU或者内存,当然还有操作系统IO句柄.网络流量.磁盘占用等等.但是绝大多数时候,我们就是在降低CPU和内存的占 ...

  9. Nuget自己打包引用的时候出现错误:Package is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package 1.0.1 supports: net (.NETFramework,Version=v0.0)

    Nuget自己打包引用的时候出现错误:Package is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package ...

随机推荐

  1. Microservices 微服务概念和优点 自治 弹性 级联故障 微服务的问题 CAP 分布式事务 修改一个服务并对其部署而不影响其他任务服务

    https://en.wikipedia.org/wiki/Microservices https://zh.wikipedia.org/wiki/微服務 微服務 (Microservices) 是一 ...

  2. wiki配置文件

    jira数据库配置文件(链接:https://blog.csdn.net/jiangguilong2000/article/details/39718407) /var/atlassian/appli ...

  3. Python爬虫实例(一)爬取百度贴吧帖子中的图片

    程序功能说明:爬取百度贴吧帖子中的图片,用户输入贴吧名称和要爬取的起始和终止页数即可进行爬取. 思路分析: 一.指定贴吧url的获取 例如我们进入秦时明月吧,提取并分析其有效url如下 http:// ...

  4. php格式化输出数组

    写网页的时候经常需要在页面中打印数组,但格式特别难看,看看一个html神器吧<pre>标签,能非常标准的显示数组格式 使用的时候只需要这样打印你的数组就OK了,太好用了,神器! echo ...

  5. Mybatis在Maven项目中使用

    Mybatis概览 ORM是什么? ORM是Object Realtion Mapping的缩写,顾名思义,即对象关系映射. ORM是一种以面向对象的方式来进行数据库操作的技术.Web开发中常用的语言 ...

  6. jQuery中on()方法用法实例

    这篇文章主要介绍了jQuery中on()方法用法,实例分析了on()方法的功能.定义及在匹配元素上绑定一个或者多个事件处理函数的使用技巧,需要的朋友可以参考下 本文实例讲述了jQuery中on()方法 ...

  7. HDFS集中式的缓存管理原理与代码剖析

    转载自:http://www.infoq.com/cn/articles/hdfs-centralized-cache/ HDFS集中式的缓存管理原理与代码剖析 Hadoop 2.3.0已经发布了,其 ...

  8. Ubuntu 16.04 源码编译安装PHP7+swoole

    备注: Ubuntu 16.04 Server 版安装过程图文详解 Ubuntu16镜像地址: 链接:https://pan.baidu.com/s/1XTVS6BdwPPmSsF-cYF6B7Q 密 ...

  9. DataGird 相关

    DataGird控件          DataGirdView 控件    DataGird类  他们之间是什么关系??????? DataGridView 控件是替换 DataGrid 控件的新控 ...

  10. codeblocks opengl的配置

    codeblocks opengl的配置 GLUT 3.7 下载地址:http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip ...