title: Recursive Copy-Local
body: <p>Yet another question regarding copy-local in msbuild.</p>
  
  <p>The problem I got is that too many assemblies are copied.</p>
  
  <p>I have the following structure:</p>
  
  <ul>
  <li>A.dll
  <ul>
  <li>B.dll 
  <ul>
  <li>ThirdParty1.dll</li>
  <li>ThirdParty2.dll</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Now the two third party libraries are referenced by B.dll with local copy set to false. They will be present in the target environment, no matter what.
  B.dll is a dependency of A.dll with local copy set to true. I need B.dll where ever I deploy A.dll.</p>
  
  <p>Now the problem is the two third party assemblies are copied as well. I don't want that and I do not understand why this is happening.</p>
  
  <p>One thing that may be important: The projects generating A and B are in different solutions.</p>
  
  <p>Anyone having a idea what is happening and a hint how to solve it?</p>