We are trying to setup CI in Visual studio environment using TFS.
Environment:
Windows 10
Microsoft Visual Studio 2017
MSVSTFS V 16.12
NuGet V 4.0
Getting below error:
https://api.nuget.org/v3/index.json:
Unable to load the service index for source https://api.nuget.org/v3/index.json.
An error occurred while sending the request.
The remote name could not be resolved: 'api.nuget.org'
Went through many links shared in the community by the developers which were of truly great help to understand the issue.
Some of my workarounds:
http://skolima.blogspot.ru/2012/07/nuget-proxy-settings.html
- This explained about NuGet.config settings to be done
-
- Very resourceful stackoverflow chain, I followed the steps of creating a NuGet.config like exactly mentioned here and my config file looked of the form:
I am behind a company's firewall and we are trying to setup CI/CD pipeline.
In TFS:
I am sure this a firewall proxy setting issue. Since I am able to access "api.nuget.org"
out of the network.
Can someone suggest what is missing in NuGet.config
to which i am pointing? Any other inputs free to share.