title: NuGet and VS2013 ignoring packageSourceCredentials in nuget.config
body: <p>I have a private nuget server which I am trying to pull packages from (eventually Azure build agent but I am trying this locally first).</p>
  
  <p>I am using the 2.7 NuGet meaning I do not need .NuGet folder (along with .exe and .targets). I have a nuget.config in my solution directory.</p>
  
  <p>I know the nuget.config is being picked up, as it locates my remote repository but the credentials supplied in the config are not used.</p>
  
  <p>Here is my config:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;activePackageSource&gt;
      &lt;add key="All" value="(Aggregate source)" /&gt;
    &lt;/activePackageSource&gt;
    &lt;packageSources&gt;
      &lt;add key="https://www.nuget.org/api/v2/" value="https://www.nuget.org/api/v2/" /&gt;
      &lt;add key="myrepo" value="http://myrepo:81/nuget/myfeed" /&gt;
    &lt;/packageSources&gt;
    &lt;disabledPackageSources /&gt;
    &lt;packageSourceCredentials&gt;
      &lt;myrepo&gt;
        &lt;add key="Username" value="user" /&gt;
        &lt;add key="ClearTextPassword" value="pass" /&gt;
      &lt;/myrepo&gt;
    &lt;/packageSourceCredentials&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>What would cause nuget to ignore these credentials? I have checked with Fiddler and no credentials are being sent, and the server responds with a 401 (correctly):</p>
  
  <pre><code>Error   1   NuGet Package restore failed for project MyProject: The remote server returned an error: (401) Unauthorized..       0   0   
  </code></pre>