title: How can I fix missing nuget references after moving project in Visual Studio 2015
body: <p>I had a project structure like this:</p>
  <pre><code> WebApp
  -- WebApp
  -- WebApp.sln
   WebApp.Tests
  -- WebApp.Tests.csproj
  </code></pre>
  <p>I moved WebApp.Tests into WebApp using a move (simple click &amp; drag into the WebApp folder). I edited WebApp.sln to fix the project reference so that it will load.</p>
  <p>When I build, Nuget complains that packages are missing and to do a restore.
  I downloaded and used nuget.exe restore on my solution and it reported everything was there.</p>
  <p>Based on other Stack Overflow answers, I have tried the following:</p>
  <ul>
  <li>Edit the test project reference hint paths. I changed from ..\WebApp\packages\PACKAGE to ..\packages\PACKAGE</li>
  <li>Reload Visual Studio (multiple times)</li>
  <li>Delete contents of packages folder and bin/obj folders of the projects</li>
  <li>Use the package manager console to reinstall packages on the Test Project</li>
  </ul>
  <p>All of these failed to fix the problem. When I used the package manager to try to reinstall the packages with the command, it gave me the same error that project building does - I must restore the packages first.</p>
  <p>Is there any quick way to fix my project? I really don't want to go through each package and uninstall/reinstall manually. Also, how could I have prevented this problem in the first place? Is there a built-in way to move project locations?</p>