TFS2017.2 NuGet 还原任务 - ETIMEDOUT 93.184.221.200:443 [英] TFS2017.2 NuGet restore task - ETIMEDOUT 93.184.221.200:443
问题描述
我有几个构建定义,它们使用旧的"NuGet 安装程序任务从我们的内部 TFS 提要(同一集合)中恢复依赖项;提要 url 通过 NuGet 源参数指定:
I have couple of build definitions that are using the "old" NuGet Installer task to restore the dependencies from our internal TFS feed (same collection); the feed url is specified through the NuGet source parameter:
恢复过程如下:
切换到较新版本的任务导致构建失败:
Switching to the newer version of the task is causing the build failure:
由于构建代理无法访问互联网,我如何禁用连接到 93.184.221.200:443 的尝试?
How can I disable the connection attempt to 93.184.221.200:443 due to the fact that the build agent doesn't have internet access?
我使用的是 TFS 15.117.26714.0.
I'm using TFS 15.117.26714.0.
更新 1
我将 nuget.exe 复制到 c:\nuget 文件夹,然后将该文件夹添加到 PATH 环境变量.相同的结果
I copied nuget.exe to c:\nuget folder then added the folder to the PATH environment variable. Same result
更新 2
我将 nuget.exe 复制到 C:\B\1_tool\NuGet\4.0.0\x64 文件夹;结果如下:
I copied nuget.exe to C:\B\1_tool\NuGet\4.0.0\x64 folder; the result is below:
推荐答案
更新 3 - 解决方法
为了欺骗新"NuGet 任务以在工具缓存中找到 nuget.exe,您需要在 {agent work folder}\_tool 中创建一个名为 x64.complete 的虚拟文件\NuGet\4.0.0 文件夹并复制 {agent work folder}\_tool\NuGet\4.0.0\x64 文件夹中的 nuget.exe 文件
In order to trick the "new" NuGet task to find the nuget.exe in the tool cache you need to create a dummy file called x64.complete in the {agent work folder}\_tool\NuGet\4.0.0 folder and copy the nuget.exe file in the {agent work folder}\_tool\NuGet\4.0.0\x64 folder
这篇关于TFS2017.2 NuGet 还原任务 - ETIMEDOUT 93.184.221.200:443的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!