title: TFS 2013 Build machine cannot see on-premises Nuget Feed
body: <p>I have read probably a hundred links online to try to find an answer, and I'm flat out of explanations.  </p>
  
  <p>I have a TFS 2013 Server running Git Team Projects.  I create a TFS build to build a service which uses public (Entity Framework) nuget packages as well as a couple of our own libraries that are packaged as Nuget packages on an IIS server.   I'm using Automatic Package Restore and NOT the 'deprecated' MSBuild "Enable Package Restore".  Thus the only nuget file in the .nuget folder is nuget.config (which I've also tried moving into the root folder)</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="myserver" value="http://myserver/Nuget/Nuget/" /&gt;
    &lt;/packageSources&gt;
    &lt;packageRestore&gt;
       &lt;add key="enabled" value="True" /&gt;
    &lt;/packageRestore&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>The thing is, when I remote into the build box, and try this from a command-line:</p>
  
  <pre><code>nuget.exe list -source http://myserver/nuget/nuget
  </code></pre>
  
  <p>It does list all the packages.  </p>
  
  <p>But a TFS build, DOES pull down Entity Framework from nuget.org...but then it tries to build:</p>
  
  <pre><code>C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Common.CurrentVersion.targets
  (1697,5): warning MSB3245: Could not resolve this reference. 
  Could not locate the assembly "MyEntitiesLib". 
  Check to make sure the assembly exists on disk. 
  If this reference is required by your code, you may get compilation errors.
  </code></pre>
  
  <p>So, I'm at my wits end here.  Both the project's nuget.config adn the default nuget.config in the msbuild tools folders have my source, I can list it from a command line, but Automatic Package Restore is NOT pulling that package down, and blowing up on compile. </p>
  
  <p>Help anyone?</p>