gpt4 book ai didi

azure-devops - 如何删除 [警告] 在还原 NuGet 包时连接到 NuGet 源

转载 作者:行者123 更新时间:2023-12-04 05:23:49 25 4
gpt4 key购买 nike

我有一个在 VSTS 中运行的构建,它正在从 nuget.org 和 VSTS 中的自定义源恢复 NuGet 包。自定义提要在解决方案 NuGet.config 中作为 <packageSource> ,以及 <packageSourceCredentials> 中的用户名和密码

构建,包括恢复,工作正常,但有一个警告......

2016-10-12T16:18:57.6589001Z ##[warning]To connect to NuGet feeds 
hosted in your Team Services account/TFS project collection with
NuGet 3.1 or below, edit your build definition to specify a path
to a NuGet.config containing the package sources you wish to use.

我怎样才能删除它?

最佳答案

根据我的测试,即使使用更高版本的 nugget(例如 3.3)或不从 VSTS 提要恢复包,该警告仍然存在。 (托管构建代理具有相同的结果)。

除非您自定义构建任务以通过命令行恢复包,否则您无法删除它。

我提交了一个问题 here .

更新:

该问题已更新。

I see the issue in the code coming from our transition from depending on assets coming with the agent to being deployed with the task. You can get around this for now until we get an official change out by either (1) choosing to use the Nuget 3.5 version radio button in the task config or (2) supplying a path to your nuget.config.



因此,您可以使用 Nuget 3.5 版本或指定 nuget.config 文件。

关于azure-devops - 如何删除 [警告] 在还原 NuGet 包时连接到 NuGet 源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40003782/

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