title: msbuild doesn't copy output of referenced native project to c# project out dir
body: <p>I'm struggling with this for a long time now.</p>
  
  <p>The setup:</p>
  
  <ul>
  <li>c# project</li>
  <li>c++ project</li>
  <li><p>c# project has a reference for the c++ project with the following lines:</p>
  
  <pre><code>&lt;ProjectReference Include="projectB.vcxproj"&gt;
      &lt;ReferenceOutputAssembly&gt;false&lt;/ReferenceOutputAssembly&gt;
      &lt;OutputItemType&gt;Content&lt;/OutputItemType&gt;
      &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
  &lt;/ProjectReference&gt;
  </code></pre></li>
  </ul>
  
  <p>This works from withing visual-studio.
  This works when using devenv from command line.
  When using msbuild from command line - the output file of the c++ project is not copied over into the output directory of the c# project.</p>
  
  <p>I wasn't able to fix that using msbuild. Read a lot about it, nothing worked. Tried to debug in using diag verbosity - but logs of msbuild and visual-studio are very different...
  I can't turn to using devenv as the build machine doesn't have valid visual-studio.</p>
  
  <p>In msbuild log with diagnostic verbosity I see:
  <code>Target "GetCopyToOutputDirectoryItems" skipped. Previously built successfully.</code>
  This is where in the visual-studio log - it looks different - and actually works on copying the referenced native files to the c# output directory.
  Perhaps something related with build order?..</p>
  
  <p>In msbuild log - I also see:
  <code>Target "_CopyOutOfDateSourceItemsToOutputDirectoryAlways" skipped, due to false condition; ( '@(_SourceItemsToCopyToOutputDirectoryAlways)' != '' ) was evaluated as ( '' != '' ).</code>
  While in the visual-studio build log I see this target executed (it comes right after GetCopyToOutputDirectoryItems target)</p>