title: How to configure where NuGet.exe Command Tool line looks for packages
body: <p>We have successfully set up a couple of local package repositories using the NuGet.Server package and hosted them on a local IIS webserver. We are able to connect from the Package Manager and install no problem. So these are working fine.</p>
  
  <p>In order for us not to have to check in our packages folder we have included the following command line in each project file that includes NuGet references. This works, if the NuGet.exe is in the path on the CI build agent. </p>
  
  <p>However, I would like to move the source configuration form the command line in every project file and put it in just one place, preferably where other pesky developers can't change it ;)</p>
  
  <pre><code>&lt;Target Name="BeforeBuild"&gt;
      &lt;Exec Command="nuget install $(ProjectDir)packages.config -s 
         http://domain:80/DataServices/Packages.svc/;
          http://domain:81/DataServices/Packages.svc/ 
         -o $(SolutionDir)packages" /&gt;
  &lt;/Target&gt;
  </code></pre>
  
  <p>Is there a better way?</p>