出于某种原因,我必须使用构建代理“Hosted Linux Preview”,因此我只能使用“dotnet restore”而不是“nuget restore”,现在我们的团队已经在VSTS上构建了内部包服务器。如何使用VSTS构建代理“托管Linux预览”来使用VSTS内部包服务器?
在“nuget restore”步骤中,可以选择连接到服务器,但“dotnet restore”不会。
我尝试了以下方法,但失败了。
尝试1添加--source https://****.pkgs.visualstudio.com/_packaging/****/nuget/v3/index.json
,我在日志中遇到错误:error : Unable to load the service index for source https://****.pkgs.visualstudio.com/_packaging/****/nuget/v3/index.json. [/opt/vsts/work/1/s/src/References.Mapper/References.Mapper.csproj]
尝试2添加--configfile ../../.nuget/Nuget.Config
,我得到了同样的错误如上
看来,构建代理没有授权从VSTS中检索index.json文件,我该如何继续?
@ starain-MSFT :)是的 – Elaine