Linux 下 给nuget 添加私有仓库

Nuget 目前还不能直接安装在 linux 下,但是编译项目 restore时候出错,因为项目引用了私有仓库里面的nuget package. 问题是怎么添加私有仓库地址到 nuget 配置文件。

Linux下 配置文件在 /home/username/.config/NuGet/NuGet.Config 下, 可以手动编辑这个文件添加,也可以用dotnet nuget add 来添加。

dotnet nuget add source http://192.168.199.230:8081/artifactory/api/nuget/nuget-local -n Artifactory -u tim -p ***** --store-password-in-clear-text

 

posted @ 2021-08-12 23:58  LearningAlbum  阅读(330)  评论(0)    收藏  举报