国产操作系统: 项目配置 .net 添加Nuget源

如何添加Nuget源

详见 https://learn.microsoft.com/zh-cn/nuget/what-is-nuget

方案一,使用dotnet nuget命令管理源(推荐,一条命令解决)

命令行格式(国产系统和win通用)

dotnet nuget add source "源的URL地址,可为服务器地址,也可为在线地址" --name "源名称"

dotnet nuget add source "https://api.nuget.org/v3/index.json" --name "NuGetOfficial"

or 本地目录

dotnet nuget add source "D:Program Files (x86)\SharpTools upkgs" --name "txh_demo"



/forum/N2025082117473119467690

/forum/N2025080814135720887816

7e4a59b6c2842cef7b3bc891b6222732

 

 

c62d7d97f07bd2837e99ccadf1921eac

 

3e6ae822c241efe4ebcbc5ef050065ce

 

posted @ 2025-08-21 19:09  porter_代码工作者  阅读(33)  评论(0)    收藏  举报