title: Referencing Static Library in other Static Libraries (Visual Studio 2010)
body: <p>In order to be able to reuse segments of code through multiple application, I have decided to create Static Libraries of the functions/classes I often require. Consequently, I can change the code of a static library and all the applications referencing that library have updated functions.</p>
  
  <p>The Architecture conceptually looks like the following graph :</p>
  
  <pre><code>AppA -&gt; LibA
       \
        -&gt; LibCommon -&gt; LibX
       /             -&gt; LibY
  AppB
  </code></pre>
  
  <p>Each applications (AppA, AppB) reside in different solutions to keep stuff clearly separated.</p>
  
  <p>In order to get that fully working in Visual Studio 2010, I have to add the project of each Lib used by the application in it's solution, add the folder containing it's header files in the <code>Additional Include Directories</code> and add a reference to the project directly used. </p>
  
  <p>Ex. For AppA, I would;</p>
  
  <ol>
  <li>include the projects of LibA, LibCommon, LibX and LibY;</li>
  <li>Add the path of LibA and LibCommon in the <code>Additional Include Directories</code> property</li>
  <li>Add a reference to LibA and LibCommon in the main application, then add references to LibX and LibY in the LibCommon's project.</li>
  </ol>
  
  <p>My first question is : Is there a way to only import the library the application directly requires? (LibA and LibCommon)</p>
  
  <p>My second question : Is there a better way to easily manage reusable code in Visual Studio 2010? (Junior Programmer Here!)</p>