AzureDevops Pipeline 问题错误 NU1301:无法加载源的服务索引

Joh*_*hur 5 nuget azure-devops

我在使用 AzureDevops 构建项目时遇到问题。它是 DotNet6,它使 .Net Core 恢复失败并出现错误:错误 NU1301:无法加载源的服务索引。这是一个具有两个依赖项的库项目,均来自 NuGet:

  • Microsoft.AspNetCore.Http.Abstractions v2.2.0
  • Stripe.net - 41.2.0

该项目在 VS2022 中完美构建。

有人有什么想法吗?

Joh*_*hur 0

尽管这两个包(如下)均兼容 #DotNetCore 6,但 AzureDevops .NetCore Restore 始终失败。

我使用 NuGet 命令创建了一个新管道,一切都很好。

  • Microsoft.AspNetCore.Http.Abstractions v2.2.0
  • Stripe.net - 41.2.0