nuget发布自已的程序集

1.nuget注册并获取apikey

2.下载nuget.exe

3.设置apikey

  nuget setApiKey <apikey>

4.开发程序集

5.进入.csproj目录生成描述文件

  nuget spec

  编辑描述文件

6.生成类库包

  nuget pack xxx.csproj

  也可以指定配置

  nuget pack xxx.csproj -Prop Configuration=Release

  生成的类包为:xxx.{version}.nupkg

7.发布类库包

  nuget push xxx.1.0.0.0.nupkg

 

posted @ 2016-11-13 12:23  小砖  阅读(204)  评论(0编辑  收藏  举报