【发布时间】:2020-01-11 04:39:39
【问题描述】:
我们的项目引用 Azure DevOps 中私有项目源中的包。在 Azure DevOps 中构建项目时,dotnet restore 可以正常完成,但 dotnet build 也尝试恢复包并失败
Unable to load the service index for source https://myazdevops.pkgs.visualstudio.com/_packaging/OurPackages/nuget/v3/index.json
解决方法是将--no-restore 添加到dotnet build 和dotnet publish 任务中。
有没有什么方法可以让构建和发布在没有参数的情况下开始工作?
【问题讨论】:
标签: .net-core azure-devops nuget azure-pipelines azure-artifacts