title: Change nuget packages search&install folder for a project in Visual Studio 2017
body: <p>I've created a solution with one project in VS2017. It is a .Net C# Winforms Application. I want the project to load in the nuget packages that have been downloaded earlier by other projects into a certain folder on my computer and add them to its references.</p>
  
  <p>The packages folder is located one directory back from the solution directory.</p>
  
  <p>How could I achieve this?</p>
  
  <p>I've already tried adding a <code>nuget.config</code> file to the solution location that contains the following XML code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;configuration&gt;
  
    &lt;config&gt;
      &lt;add key="globalPackagesFolder" value="..\packages" /&gt;
      &lt;add key="repositoryPath" value="..\packages" /&gt;
    &lt;/config&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>My solution seemed to ignore it completely even after including it in the VS solution explorer.</p>
  
  <p>I've also read that <code>globalPackagesFolder</code> is overridden by <code>NUGET_PACKAGES</code> (or something along those lines) environmental variable, so what is the point of setting it in the <code>.config</code> file? Or am I not understanding something correctly? </p>
  
  <p>Also, a little bit off topic, but still, I am really curious. When I click 'Manage nuget packages' on my project and download something those packages are placed one directory before the <code>.csproj</code> file of my project. Can I change where these packages for that particular project are being downloaded to (and pulled from into the references of my project)?</p>