0
点赞
收藏
分享

微信扫一扫

使用BaGet搭建私有nuget源

玉新行者 2022-07-28 阅读 72

​​BaGet​​

搭建过程

​​官方包 v0.4.0-preview2​​

修改配置

使用BaGet搭建私有nuget源_json

运行
dotnet BaGet.dll

运行效果如下

使用BaGet搭建私有nuget源_json_02

上传

dotnet nuget push -s http://localhost/v3/index.json package.nupkg

如果设置了秘钥以后可通过setapikey命令配置

nuget setapikey <key> -Source <url> [options]

例如

nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -source https://example.com/nugetfeed

​​setapikey​​

导入原有nuget

for /f "delims=" %%f in ('dir /b /a-d-h-s') do (
rem echo %%f
dotnet nuget push -s http://localhost:8080/v3/index.json %%f
)

删除包

dotnet nuget delete  -s http://127.0.0.1/v3/index.json   test 1.0.0

​​参考​​



举报

相关推荐

0 条评论