title: Restoring NuGet packages from custom Nugetserver using TFS Build 2015
body: <p>We have a large number of solutions in our source control, which all use NuGet packages from a custom source (<a href="http://nugetserver/nuget" rel="nofollow noreferrer">http://nugetserver/nuget</a>). All solutions restore and build successfully locally within Visual Studio.</p>
  
  <p>Using the new TFS 2015, our build definition looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/gO0ML.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gO0ML.jpg" alt="Tfs 2015 build definition steps"></a></p>
  
  <p>The NuGet Installer step is there for us to restore our packages from a custom resource:</p>
  
  <p><a href="https://i.stack.imgur.com/tzqHz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tzqHz.jpg" alt="enter image description here"></a></p>
  
  <p>There is however no NuGet.exe file in the custom NuGet server directory. As <a href="https://stackoverflow.com/questions/31384189/how-to-get-tfs2015-build-build-vnext-and-nuget-package-restore-to-use-custom-p">suggested here</a> tried just setting the -source to "<a href="https://www.nuget.org/api/v2/" rel="nofollow noreferrer">https://www.nuget.org/api/v2/</a>". We receive the same error at build whichever source we use:</p>
  
  <p><a href="https://i.stack.imgur.com/SIikA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SIikA.jpg" alt="enter image description here"></a></p>