title: Copy referenced project's dependency .dll's to target output with Visual Studio 2013
body: <p>I have an application project <em>App.csproj</em> which has a reference to <em>BaseLib.csproj</em>.  <em>BaseLib</em> uses some DevExpress third party libraries and contains references to the thrid party libraries.  <em>App</em> does not directly use the DevExpress libraries so does not need a direct reference to the third party libraries.  This is the reference list for <em>BaseLib</em>.</p>
  
  <p><img src="https://i.stack.imgur.com/Q7DUI.png" alt="Reference list of BaseLib"></p>
  
  <p>When I build the application, I want the DevExpress libraries to be copied over to the target directory so it will successfully execute.  I don't want to introduce a build event since it is something else to maintain - I'd like the maintenance to be localized to the <em>BaseLib</em> project.  </p>
  
  <p>This partially works now.  I have 7 references and 5 of the .dll's will copy over (NavBar and Office2007 does not).  The difference is that <em>BaseLib.dll</em> contains these statements for the 5 that do copy but they are not present for the 2 that do not (output from <em>ildasm</em>).  </p>
  
  <pre><code>.assembly extern 'DevExpress.Xpf.Grid.v13.1.Core'
  {
    .publickeytoken = (B8 8D 17 54 D7 00 E4 9A )                         // ...T....
    .ver 13:1:4:0
  }
  .assembly extern 'DevExpress.Xpf.Grid.v13.1'
  {
    .publickeytoken = (B8 8D 17 54 D7 00 E4 9A )                         // ...T....
    .ver 13:1:4:0
  }
  </code></pre>
  
  <p>So, how can I get the other 2 included?  All the settings are the same in the properties tab.
  The other 2 were added at a later time if that makes a difference.</p>
  
  <p>Just to note, this is a followup to these two questions (<a href="https://stackoverflow.com/questions/1043913/copying-a-dlls-dependencies-in-visual-studio/12076542#12076542">Copying a DLL's dependencies in Visual Studio</a> and <a href="https://stackoverflow.com/questions/1132243/msbuild-doesnt-copy-references-dlls-if-using-project-dependencies-in-solution">Msbuild doesn't copy references (dlls) if using project dependencies in solution</a>).</p>