使用发布到 Azure Dev Ops 项目的项目

Using an artifact that is published to an Azure Dev Ops project

我已经在 Azure DevOps 中为 Artificats 配置了一个源。我可以从 CLI 发布到提要,并且包成功显示在 Visual Studio UI 中:

在 DevOps UI 中也按预期显示工件:

我已将提要 url 作为源添加到 nuget.config 文件中的项目中。但是,在管道构建期间,我收到 401 错误:

假设将构建服务作为授权用户就足够了,但显然我遗漏了一些东西:

如何配置它以便我的管道可以访问这些包?

确保在 运行 dotnet restore 任务之前添加 NuGet Auth task。它将为构建作业添加正确的配置。