首页 > 其他分享 >2019-3-1-获取-Nuget-版本号

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

时间:2024-10-11 12:20:42浏览次数:3  
标签:NuGet 版本号 程序包 nuget Nuget 2019 command config

title

author

date

CreateTime

categories

获取 Nuget 版本号

lindexi

2019-3-1 9:27:6 +0800

2019-02-25 15:51:48 +0800

nuget

本文告诉大家通过命令行获取 Nuget 的版本号

在 Nuget 中没有 -version-v--version 等写法,只需要直接输入 nuget 在第一行就会显示版本号

nuget
NuGet Version: 4.9.3.5776
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      获取或设置 NuGet 配置值。

 delete      从服务器中删除程序包。

 help (?)    显示一般帮助信息,以及有关其他命令的帮助信息。

 init        Adds all the packages from the <srcPackageSourcePath> to the hierarchical <destPackageSourcePath>. http fe
             eds are not supported. For more info, goto https://docs.nuget.org/consume/command-line-reference#init-comm
             and.

 install     使用指定的源安装程序包。如果未指定源,则将使用 NuGet 配置文件中定义的所有源。如果配置文件未指定源,则使用默认的 NuGet 源。

 list        显示给定源中的程序包列表。如果未指定源,则使用 %AppData%\NuGet\NuGet.config 中定义的所有源。如果 NuGet.config 未指定源,则使用默认 NuGet 源。

 locals      Clears or lists local NuGet resources such as http requests cache, temp cache or machine-wide global packa
             ges folder.

 pack        基于指定的 nuspec 或项目文件创建 NuGet 程序包。

 push        将程序包推送到服务器并进行发布。
             通过加载 %AppData%\NuGet\NuGet.config,然后加载从驱动器的根目录开始到当前目录为止的任何 nuget.config 或 .nuget\nuget.config 来获取 NuGet 的默
             认配置。

 restore     还原 NuGet 程序包。

 setApiKey   保存给定服务器 URL 所对应的 API 密钥。如果未提供 URL,则保存 NuGet 库的 API 密钥。

 sign        Signs a NuGet package with the specified certificate.

 sources     可以管理位于 %AppData%\NuGet\NuGet.config 的源列表

 spec        为新程序包生成 nuspec。如果此命令在项目文件(.csproj、.vbproj、.fsproj)所在的文件夹中运行,则它将创建已标记 化的 nuspec 文件。

 update      将程序包更新到最新的可用版本。此命令还更新 NuGet.exe 本身。

 verify      Verifies a signed NuGet package.

有关详细信息,请访问 http://docs.nuget.org/docs/reference/command-line-reference

可以已通过 nuget update -self 更新 Nuget 自己的版本

也可以从官网 下载最新版本








标签:NuGet,版本号,程序包,nuget,Nuget,2019,command,config
From: https://blog.51cto.com/u_11283245/12217468

相关文章

  • 2019-8-31-C#-获取-PC-序列号
    titleauthordateCreateTimecategoriesC#获取PC序列号lindexi2019-08-3116:55:58+08002018-7-3010:31:9+0800dotnetC#WMI在C++需要使用GetSystemFirmwareTable的方法来获得PC的序列号,需要写的代码很多,但是在C#可以使用WMI来拿到序列号首先是安装System.Manageme......
  • 2019-3-8-为何使用-DirectComposition
    titleauthordateCreateTimecategories为何使用DirectCompositionlindexi2019-3-88:56:9+08002018-04-1809:44:40+0800windowsDirectComposition本文主要翻译WhyuseDirectComposition,介绍DirectComposition的功能和优点。创建更加迷人的界面虽然界面创建好看是设计师的能......
  • 2019-9-20-SharpDx-的代替项目
    titleauthordateCreateTimecategoriesSharpDx的代替项目lindexi2019-09-2009:13:59+08002019-09-2009:13:58+0800现在SharpDx已经不维护了,如果还需要在C#使用Dx相关技术,可以使用本文列出的替代项目Vortice.Windowsamerkoleci/Vortice.Windows:WindowsandUWPlibrarie......
  • 自定义tomcat的服务器名称和版本号
    要修改Tomcat的服务器名称和版本号,你需要编辑Tomcat的server.xml配置文件。这个文件通常位于Tomcat安装目录的conf文件夹下。打开server.xml文件。找到以下部分:<Connectorport="8080"protocol="HTTP/1.1"connectionTimeout="20000"redirect......
  • [CSP-S 2019 江西] 网格图
    算法暴力建图直接跑Kruskal,显然能通过\(64pts\)的点正解分析Kruskal的复杂度发现比较边权非常的浪费,很显然是不必要的并查集求环路也浪费了网格图的性质考虑优化把每一条边看做一个整体,整体比较只需要\(O((n+m)\log(n+m))\)问题是这样比较之后正确性如......
  • 2019_07_16_01
    this、apply、call、bindthisthis永远指向最后调用它的那个对象apply、call的区别对于apply、call二者而言,作用完全一样,只是接受参数的方式不太一样。例如,有一个函数定义如下:varfunc=function(arg1,arg2){};就可以通过如下方式来调用:使用场景参数明确使用call......
  • windows@win10@Win11版本号和代号命名变迁@获取或查看windows版本号信息详情方法列举
    文章目录相关文档或参考变迁概况Windows版本号及命名变迁Windows版本及其代号命名变迁分析大版本换代与构建版本变更节点关键点总结查看windows系统的版本号......
  • [CSP-S2019] 括号树
    算法特殊性质显然链的情况就是括号匹配因此显然有代码代码#include<bits/stdc++.h>#defineintlonglongconstintMAXN=5e5+20;intn;std::stringBraket;intfa[MAXN];boolCheck_Special_Quality(){for(inti=2;i<=n;i++){if(f......
  • CF2019 F. Max Plus Min Plus Size
    ddp题解,就是\(f[pos][o][l][r]\)表示线段树上pos位置的区间是否选出最大值,以及左右端点有没有被去到时的最大值。然后用线段树维护依次取某个值为最小值的时候dp的最优解。constintN=2e5+5;intT,n,a[N],f[N<<2][2][2][2];inlineintgetmax(intpos){returnma......
  • CF2019
    CF2019A.MaxPlusSize难度:红弱智题。奇数偶数分别判一遍。#include<bits/stdc++.h>#definelllonglongusingnamespacestd;llT,n,a[110],dp[110][110][2],ans1,ans2;intmain(){ios::sync_with_stdio(0);cin.tie(0),cout.tie(0);cin>>T;while(......