TFS 2018 Build agent Nuget Download

0

I am creating a build definition for a ASP.NET core project targeting .NET full framework 4.7.2 using TFS 2018. I have created an agent and a build definition . I have a task for Nuget Tool Installer, since I require a different version than the default which come with Nuget task(which is 4.1), But the installer task failed with the error

ERR:getaddrinfo EAI_AGAIN dist.nuget.org:443

I have my agent configured to use a proxy since my agent machine is behind a proxy , but still the same error. Is there a way to download and configure the required nuget.exe version separately(I have downloaded it - But do not know how to configure it for the nuget task) for the nuget task so that it will use the specified version rather than download using the Tool Installer Task?.

Cheers, Jereesh

jereesh thomas

Posted 2019-06-26T11:44:55.827

Reputation: 1

I did found the solution , under agent there is a folder _work and then _tools which contains Nuget folder where all nuget versions are kept within sub folders . This is the cache used to find nuget before trying to download it from nuget.org , if we copy the correct version here ,it will work without trying to download during task execution. – jereesh thomas – 2019-06-26T15:31:59.310

No answers