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:
The restore process is working fine as below:
Switching to the newer version of the task is causing the build failure:
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?
I'm using TFS 15.117.26714.0.
Update 1
I copied nuget.exe to c:\nuget folder then added the folder to the PATH environment variable. Same result
Update 2
I copied nuget.exe to C:\B\1_tool\NuGet\4.0.0\x64 folder; the result is below:
Update 3 - Workaround
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With