gpt4 book ai didi

nuget - AzureDevOps 不会从 AzureDevOps 源恢复包

转载 作者:行者123 更新时间:2023-12-04 03:20:33 25 4
gpt4 key购买 nike

使用 AzureDevOps 我应该能够从 AzureDevOps 中托管的源中恢复包。Nuget.config 似乎是正确的,构建可以访问提要,在本地它运行良好,显式使用相同的配置文件。

我看过 VSTS Build vNext NuGet custom package source但非常想避免在那里添加 apikey。官方文档说明它应该是可能的:https://www.visualstudio.com/docs/package/get-started/build/team-build

NuGet.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
<add key="automatic" value="True" />
</packageRestore>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="Net2Library" value="https://xxx.pkgs.visualstudio.com/DefaultCollection/_packaging/yyy/nuget/v3/index.json" />
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>

提要设置 enter image description here

恢复设置(它使用正确的配置,从日志中列出提要可见)

enter image description here

相关日志:

2016-07-30T12:33:37.8085538Z Restoring NuGet package XYZ.2016.7.29.14.
2016-07-30T12:33:42.6885539Z Unable to find version '2016.7.29.14' of package 'XYZ'.
2016-07-30T12:33:42.6915543Z Feeds used:
2016-07-30T12:33:42.6925542Z C:\Users\buildguest\AppData\Local\NuGet\Cache
2016-07-30T12:33:42.6925542Z C:\Users\buildguest\.nuget\packages\
2016-07-30T12:33:42.6925542Z https://api.nuget.org/v3/index.json
2016-07-30T12:33:42.6935552Z https://xxx.pkgs.visualstudio.com/DefaultCollection/_packaging/yyy/nuget/v3/index.json
2016-07-30T12:33:42.7235541Z ##[debug]rc:1
2016-07-30T12:33:42.7245545Z ##[debug]success:false
2016-07-30T12:33:42.7325527Z ##[error]Error: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\agents\1.103.1\agent\Worker\Tools\nuget.exe failed with return code: 1
2016-07-30T12:33:42.7335525Z ##[error]Packages failed to install
2016-07-30T12:33:42.7335525Z ##[debug]task result: Failed
2016-07-30T12:33:42.7345538Z ##[error]Return code: 1

最佳答案

关于nuget - AzureDevOps 不会从 AzureDevOps 源恢复包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38674185/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com