title: Nuget Automatic Restore - Specifying custom repositories for TFS Build
body: <p>I am attempting to migrate to nuget's new Automatic Package Restore. Whilst it works fine on my own machine (packages are restored), builds performed as a TFS Build on the build server do not build, complaining that they cannot find the various dlls (that should have been downloaded as part of the restore).</p>
  
  <p>I have created a nuget.config in my solution folder, as specified here:</p>
  
  <p><a href="http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html" rel="nofollow">http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html</a></p>
  
  <p>I have also tried putting this nuget.config file next to the nuget.exe file in TFS, in the hope that it would be used, but to no avail.</p>
  
  <p>The nuget reference here:</p>
  
  <p><a href="http://docs.nuget.org/docs/reference/nuget-config-file" rel="nofollow">http://docs.nuget.org/docs/reference/nuget-config-file</a></p>
  
  <p>states that the nuget.config in my solution folder should be picked up. But it appears that it isn't.</p>
  
  <p>I'm at the end of my tether. According to nuget, the Package Restore feature is designed specifically so that packages don't need to be checked in. However, there's scant information about how to get TFS to actually restore the packages, and what I've found does not work.</p>
  
  <p>Any help would be gratefully received.</p>
  
  <p>My nuget.config looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;solution&gt;
      &lt;add key="disableSourceControlIntegration" value="true" /&gt;
    &lt;/solution&gt;
    &lt;packageSources&gt;
      &lt;add key="nuget.org" value="https://www.nuget.org/api/v2/" /&gt;
      &lt;add key="ads" value="&lt;address to local repository&gt;" /&gt;
    &lt;/packageSources&gt;
  &lt;/configuration&gt;
  </code></pre>