【发布时间】:2017-06-19 10:22:08
【问题描述】:
由于某种原因,我必须使用构建代理“Hosted Linux Preview”,所以我只能使用“dotnet restore”而不是“nuget restore”,而现在我们的团队有基于 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 文件的权限,我该如何处理?
【问题讨论】:
标签: azure-pipelines nuget-server azure-pipelines-build-task dotnet-restore