title: Shared Library in repository with visual studio
body: <p>I'm new to Git version control. I just want each project to have its own repository.</p>
  
  <p>I created </p>
  
  <ol>
  <li>A Project(Shared Lib) in RepoA</li>
  <li>B Project(Shared Lib) in RepoB that has subtree of A</li>
  <li>C Project(Shared Lib) in RepoC that has subtree of A</li>
  <li>D Project(Console Application) in RepoD that has subtree of B and C</li>
  </ol>
  
  <p>the folder structure is like below.</p>
  
  <p>D</p>
  
  <p>-B</p>
  
  <p>--A</p>
  
  <p>-C</p>
  
  <p>--A</p>
  
  <p>As you can see, A folder is duplicated, and I can't add the same project twice in visual studio.</p>
  
  <p>If I add A project in B folder, the compile error occurs.</p>
  
  <p><strong><em>Metadata file project C..... 'A.dll' could not be found</em></strong>
  Because A project in C folder, never been compile, A.dll is missing.</p>
  
  <p>If A in C project is compiled once, it works fine.(by opening Either C.sln or A.sln in C project) 
  Of course, there would be A.dll,</p>
  
  <p>but next time someone else download D project from git, he/she should compile C or A in C project before compile D project.</p>
  
  <p>Anyone has a good solution for this?</p>