VSTS NuGet restore fails (proxy?) -


up we've been using azure vm's building our application. because of legal requirements instructed move these activities on-prem server resides behind proxy. see builds failing following log message:

##[error]getaddrinfo enotfound dist.nuget.org dist.nuget.org:443 

so assuming might due nuget proxy config. i've tried adding nuget.config file correct proxy settings , checking 1 in solution, didn't change anything. tried downloading cli , setting nuget proxy config setting, again no avail.

the weird thing is; when run command locally cmd, works fine!? must missing here, what?

@jasper, hi, i'm keith , work on packaging team @ msft.

it looks may using nuget tool installer fetch nuget before running build task. can confirm case? if situation there known problem tool installer not respecting proxy settings of build agent being fixed.

also, should not need set proxy settings in nuget.config. should set them in build agent via this method. v2.* version of nuget build task discover agent's proxy settings , use them when appropriate (e.g. restore).


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -