【发布时间】:2020-08-10 23:56:20
【问题描述】:
按照此处的说明进行操作:
https://docs.microsoft.com/en-us/azure/devops/release-notes/2020/pipelines/sprint-170-update
具备以下条件:
packages:
- package: MyPkg
type: NuGet
connection: github
name: TheOrg/TheRepo/ThePkg
version: '*'
和
- getPackage: MyPkg
Azure Pipelines 似乎并没有完全正确地做到这一点。我不确定这如何通过基本测试。
日志显示:
Using authentication information for the following URI: https://nuget.pkg.github.com/{ThePATUser}/index.json
那是错误的……我指定了一个组织。生成 PAT 的用户不是我尝试使用的 NuGet 提要
然后
"C:\Program Files\dotnet\dotnet.exe" add d:\a\1\Nuget\dotnet\tempCsproj_67.csproj package TheRepo -v * -n
这显然也是错误的。这个功能真的有用吗?
我查看了任务的源代码: https://github.com/microsoft/azure-pipelines-tasks/pull/12292/files#diff-6aadc4d5fa0b434a99fe35ba9d3d2ac4R55
据我所知,这只是糟糕的逻辑。希望 MS 的某个人确认此代码确实不起作用。
【问题讨论】:
标签: azure-devops azure-pipelines github-package-registry