title: How to resolve nuget packages when using git submodules for VS Solution
body: <p>I have two repositories. The first one is big integration repository with lots of projects in it. The second one is relatively small solution with a number of projects in it that is being developed separately and then integrated into the first solution.</p>
  
  <p>I added second git repository to the first git repository as submodule, so I have such file structure:</p>
  
  <pre><code>MainSolution.sln
  SomeProject1
  SomeProject2
  packages
  my-second-project
    SecondSolution.sln
    SomeProject3
    SomeProject4
  </code></pre>
  
  <p>And my separate repository (after restoring nuget packages) looks like</p>
  
  <pre><code>SecondSolution.sln
  SomeProject3
  SomeProject4
  packages
  </code></pre>
  
  <p>Now, each project references nuget restore packages folder separately. So None of my projects from added submodule were able to restore their nuget packages because they searched for <code>my-second-project/packages</code> folder which doesn't exist. And if I reinstall nuget packages, then I can see in my git diffs that they begin to reference root packages folder (like <code>..\..\packages</code>).</p>
  
  <p>How can I resolve this?</p>