title: Referencing NuGet packages from directory in solution
body: <p>I have a solution with several ASP.NET Core projects in it, managed in Visual Studio 2015.</p>
  
  <p>My NuGet packages are currently being stored in <code>C:\Users\My User\.nuget\packages\</code>. I need to instead have a Packages directory in my solution and reference packages from there. Like this:</p>
  
  <ul>
  <li>SolutionFolder
  
  <ul>
  <li>src
  
  <ul>
  <li>Project1</li>
  <li>Project2</li>
  <li>[...]</li>
  </ul></li>
  <li>Packages</li>
  </ul></li>
  </ul>
  
  <p>I copied the packages from the default path above into a solution directory, then removed all references for a project. I then added my Packages directory as a NuGet Package Source. Finally, I clicked Manage NuGet Packages and added some to a specific project, making sure that my custom package source was selected.</p>
  
  <p>This seemed to work, but when I checked the path of the referenced packages, it was still the default <code>C:\Users\[...]\packages\</code> path.</p>
  
  <p>What am I missing? How do I reference the packages from the solution directory?</p>
  
  <p>I tried opening up the .xproj file and manually setting the path like I used to sometimes do in .csproj files, but it appears that isn't possible in .xproj files. Or I just don't know how to do it. </p>