Board logo

标题: 私有Nuget服务搭建总结(3) [打印本页]

作者: look_w    时间: 2019-3-10 14:15     标题: 私有Nuget服务搭建总结(3)

3. 提交nuget

    准备nuget:
    随便创建一个NetCore库项目,随便写个helloworld,然后执行命令:

C:\Users\liuyin\Downloads\nuget.exe spec

    注意:nuget.exe 从这里下载

执行命令后会生成一个文件nuspec文件,编辑这个文件:





    生成nuget:

C:\Users\liuyin\Downloads\nuget.exe pack TestNetCoreDll.csproj -Build -Properties Configuration=Release

如果没有错误的话,会生成do.TestNugetDll.1.0.2.nupkg文件

    do.TestNugetDll.1.0.0.nupkg和do.TestNugetDll.1.0.1.nupkg版本在我这个1.0.2执行前已经提交到Nexus上了。

    提交nuget
其中8f94xxxx是那个APIKey,最后的地址必须是/repository/nuget-hosted/
我们在Nexus网站上看看提交的结果:






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0