title: Visual Studio 2010 - Does not copy folder on deployment to "Out" directory
body: <p>Hi I need copy folder which contains XML configuration files for IoC in Unit Test Projects to TestResults "output" directory. I use Visual Studio 2010.</p>
  
  <p>Visual Studion solution has this structure:</p>
  
  <ul>
  <li>MyProject (Solution)
  
  <ul>
  <li>MyProject.Tests (Unit Test Project)
  
  <ul>
  <li>CoreSettings (folder which contains XML files, I need copy this folder to <strong>MyProject.Tests\bin\debug\TestResults\test_XXX\out</strong>)</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>First I tried edit this two files:</p>
  
  <ul>
  <li>Local.testsettings</li>
  <li>TraceAndTestImpact.testsettings</li>
  </ul>
  
  <p>I opened these two configuration files in VS and:</p>
  
  <ul>
  <li>chose Deployment >> Add Directory and  added in both configuration files folder  CorreSettings.</li>
  </ul>
  
  <p>I ran test but <strong>folder CoreSettings</strong> was not copy to <strong>MyProject.Tests\bin\debug\TestResults\test_XXX\out</strong>.</p>
  
  <p>I google it and found this <a href="https://stackoverflow.com/a/3588829/1110195">https://stackoverflow.com/a/3588829/1110195</a>.</p>
  
  <p>So I edited these files :</p>
  
  <ul>
  <li>Local.testsettings</li>
  <li>TraceAndTestImpact.testsettings</li>
  </ul>
  
  <p>And added this:</p>
  
  <pre><code>&lt;DeploymentItem filename="MyProject.Tests\CoreSettings\" outputDirectory="CoreSettings\"&gt;
  </code></pre>
  
  <p>But it didn’t help.</p>
  
  <p>I tried used attribute way.</p>
  
  <p>on test class I added.</p>
  
  <pre><code> [DeploymentItem(@"MyProject.Tests\CoreSettings, @"CoreSettings\")]
  </code></pre>
  
  <p>But also this way didn’t copy folder CoreSettings to TestRestults\test_XXX\out.</p>
  
  <p>In TestRestults\test_XXX\out I found and DLL’s but not CoreSettings folder.</p>
  
  <p>All XML files in CoreSettings folder has:</p>
  
  <ul>
  <li>Build Action: Content</li>
  <li>Copy to Output Directory: Copy always</li>
  </ul>
  
  <p>What I do bad? Thank you for help.</p>