title: "The remote name could not be resolved: 'nuget.org'"
body: <p>We are trying to setup CI in Visual studio environment using TFS.</p>
  
  <p><strong>Environment:</strong> </p>
  
  <ul>
  <li><p>Windows 10</p></li>
  <li><p>Microsoft Visual Studio 2017</p></li>
  <li><p>MSVSTFS V 16.12</p></li>
  <li><p>NuGet V 4.0</p></li>
  </ul>
  
  <p><strong>Getting below error:</strong></p>
  
  <pre><code>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'
  </code></pre>
  
  <p>Went through many links shared in the community by the developers which were of truly great help to understand the issue.</p>
  
  <p><strong>Some of my workarounds:</strong></p>
  
  <ol>
  <li><p><a href="http://skolima.blogspot.ru/2012/07/nuget-proxy-settings.html" rel="nofollow noreferrer">http://skolima.blogspot.ru/2012/07/nuget-proxy-settings.html</a></p>
  
  <ul>
  <li>This explained about NuGet.config settings to be done</li>
  </ul></li>
  <li><p><a href="https://stackoverflow.com/questions/9232160/nuget-behind-proxy/15463892#15463892">NuGet Behind Proxy</a></p>
  
  <ul>
  <li>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:</li>
  </ul></li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/7eZEx.png" alt="NuGet.config which I created"></p>
  
  <p>I am behind a company's firewall and we are trying to setup CI/CD pipeline.</p>
  
  <p>In TFS:
  <img src="https://i.stack.imgur.com/I5RLz.png" alt="TFS Build NuGet Error"></p>
  
  <p>I am sure this a firewall proxy setting issue. Since I am able to access <code>"api.nuget.org"</code> out of the network.</p>
  
  <p>Can someone suggest what is missing in <code>NuGet.config</code> to which i am pointing? Any other inputs free to share. </p>