c# 搭建nuget服务器

1.需安装.net core 3.1.32。下载地址:

https://download.visualstudio.microsoft.com/download/pr/6744eb9d-dcd4-4386-9d87-b03b70fc58ce/818fadf3f3d919c17ba845b2195bfd9b/dotnet-hosting-3.1.32-win.exe

2.下载Beget程序 github地址:https://objects.githubusercontent.com/github-production-release-asset-2e65be/112103032/036213d6-96fc-42d4-a8a2-21d314632723?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230723%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230723T041135Z&X-Amz-Expires=300&X-Amz-Signature=11fb31cca6e6e23ce5179d34691c013d0896f5b0a6c76bca853813836f247a34&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=112103032&response-content-disposition=attachment%3B%20filename%3DBaGet.zip&response-content-type=application%2Foctet-stream

3.安装好后部署到iis。

4.就可以进入页面了。

 

 

5.创建一个类库程序,封装完成后,右键菜单点击打包。

6.在debug目录下支持cmd命令(dotnet nuget push -s http://127.0.0.1:8888/v3/index.json 包名.nupkg)

 

 7.再次查看已经发布成功。

 

 

posted @ 2022-10-29 16:03  lzy1666  阅读(195)  评论(0编辑  收藏  举报