环境准备

1. 下载nuget : https://www.nuget.org/downloads

2. 设置到环境变量Path, 使生效:在Cmd打入: set path=abc  关闭Cmd (Cmd设置的Path只作用于临时)

3. 获到nuget ApiKey , setapikey: 

nuget setApiKey xxxxxxxxxxxxxxxx
发布

进入工程 csproj 文件夹:

1. 编辑好项目信息(作者,版本号:1.0.*),编译生成项目

2. nuget spec

3. 编辑 项目名.nuspec , 添加   summary 一节, 这节内容是nuget 搜索的内容项。最重要。 

4. 修改: licenseUrl, projectUrl ,iconUrl ,releaseNotes , tags 

5. nuget pack 项目名.csproj, 生成 项目名.版本号.nupkg

6.  nuget push 生成 项目名.版本号.nupkg  -Source nuget.org

 

NuGet 使用笔记_其他   作者:NewSea     

  如无特别标记说明,均为NewSea原创,版权私有,翻载必纠。欢迎交流,转载,但要在页面明显位置给出原文连接。谢谢。