[英]Dotnet build in Azure DevOps with private package source cannot restore from private nuget feed
[英]Strange behavior restore package from local feed in azure devops pipeline
我有一個奇怪的問題。 我嘗試在 Azure 管道中使用 do.net restore 命令恢復 .net 核心應用程序。 我的 package 之一在我的本地提要上(repo 和提要在同一個 azure devops 項目中)。 使用經典編輯器(UI 編輯器)我沒問題,但使用 yaml 文件無法恢復。 我有錯誤:錯誤 NU1301:無法加載源的服務索引
我從經典編輯器中導出 yaml,並將其復制到新的 yaml 管道文件中,但構建也失敗了...恢復任務的配置相同,但不適用於 yaml。
奇怪的是,恢復任務在周五(使用 yaml)工作,但從昨天開始失敗,沒有任何變化......
我什么都不懂……誰會有想法?
謝謝
(代理為azure代理)
yaml文件內容:
jobs:
- job: Job_1
displayName: Agent job 1
pool:
vmImage: windows-2019
steps:
- checkout: self
fetchDepth: 1
- task: DotNetCoreCLI@2
displayName: "dotnet restore"
inputs:
command: restore
projects: '**\*.sln'
vstsFeed: "afcdef6a-5c72-4a0e-90c5-33d9e751869c/ab1da1d1-3562-4a0a-9781-4f4d80de93ba"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.