BaGet
搭建过程
官方包 v0.4.0-preview2
修改配置
运行
dotnet BaGet.dll
运行效果如下
上传
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
参考