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
Post a Comment