STEP 1:在NuGet上注册并获取API Key   

首先,你需要在NuGet(https://www.nuget.org/)上注册一个新的账号,然后在My Account页面,获取一个API Key,这个过程很简单,我就不作说明了。

SETP 2:下载NuGet.exe

NuGet有个命令行工具:NuGet.exe,非常好用,不过使用之前需要下载,下载地址:http://nuget.codeplex.com/releases/view/612846

笔者把下载的NuGet.exe放到目录:C:\Program Files\nuget中,为了方便使用,添加此路径环境变量,如何添加环境变量,很简单,再此就不作说明了。

STEP 3:设置API Key

使用以下命令设置NuGet API Key:nuget setApiKey <my_api_key>,记得把my_api_key替换为 SETP 1中获得的API Key。

NuGet -- 如何创建及发布自己的程序包

2
3
4
5
6
7
8
9
10
11
12
13
14
[assembly: AssemblyTitle("AC.Core")]
[assembly: AssemblyDescription("wychuan's .net core lib.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("wychuan")]
[assembly: AssemblyProduct("AC.Core")]
[assembly: AssemblyCopyright("Copyright © wychuan 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
 
[assembly: ComVisible(false)]
 
[assembly: Guid("fac8fea2-2803-4382-b145-ed5f660bdc58")]
 
[assembly: AssemblyVersion("1.0.0.0")]

相关文章:

  • 2022-01-21
  • 2021-08-04
  • 2021-12-16
  • 2017-12-17
  • 2021-11-19
猜你喜欢
  • 2021-09-22
  • 2021-08-31
  • 2021-07-14
  • 2021-07-05
  • 2021-05-27
相关资源
相似解决方案