Azure DevOps上的Dotnet Core NuGet包依赖性构建问题



由于源代码或管道没有任何更改,我现在遇到了一个问题,我的构建管道在Azure DevOps中都无法工作。正在引用的包不是此项目的依赖项,也从来不是。我不知道是什么原因导致的,也不知道如何进行故障排除。

2018-11-26T10:25:14.2812751Z Restoring packages for C:Agent_work19sOrchestrateIT.WebOrchestrateIT.csproj...
2018-11-26T10:25:14.7577515Z C:Program Filesdotnetsdk2.1.400NuGet.targets(114,5): error : Unable to load the service index for source https://orchestrate-it.pkgs.visualstudio.com/_packaging/Shared_DBUpdate/nuget/v3/index.json. [C:Agent_work19sOrchestrateIT.DataImportSchedulerOrchestrateIT.DataImportScheduler.csproj]
2018-11-26T10:25:14.7577910Z C:Program Filesdotnetsdk2.1.400NuGet.targets(114,5): error :   Response status code does not indicate success: 401 (Unauthorized). [C:Agent_work19sOrchestrateIT.DataImportSchedulerOrchestrateIT.DataImportScheduler.csproj]
2018-11-26T10:25:14.7579439Z     0 Warning(s)
2018-11-26T10:25:14.7579628Z     1 Error(s)
2018-11-26T10:25:14.7579743Z 
2018-11-26T10:25:14.7579902Z Time Elapsed 00:00:02.18
2018-11-26T10:25:14.7906687Z ##[error]Error: C:Program Filesdotnetdotnet.exe failed with return code: 1

本地(手动(构建工作正常。我已经尝试清除Nuget缓存和VSTS代理缓存。一个快速的解决方法可能是解决授权问题(即使不需要该软件包(,但我不知道该怎么做。

如有任何建议,我们将不胜感激。

尽管我的个人访问令牌尚未过期,但出于某种原因,我需要删除此包并将其添加回具有相同PAT的源代码中。这解决了身份验证问题,从而解决了生成问题。

我仍然不清楚为什么这个包被认为是这个项目的依赖项。

最新更新