title: Where to place resource files?
body: <p>If the project has these directories</p>
  
  <pre><code>  MyProject
     - bin
       - Debug
         - program.exe
       - Release
         - program.exe
     - program.cs
  </code></pre>
  
  <p>Where to place a <code>data.csv</code> file that will be parsed by the program?
  I'd like to have it in the same folder as the program. Do I have to copy it to the Debug and Release dirs? Or is there a better way?</p>
  
  <hr>
  
  <p><strong>Edit</strong>
  I also needed to copy whole directories to output directory, but Visual Studio doesn't have this option. I found the answer <a href="https://stackoverflow.com/a/3365429/343721">here</a>. If the Directory is huge (like in my case) it can be solved to copy only newer files using <code>/D</code> xcopy attribute. In my case, I added this command to post-build events (Project->Properties) and it works great:</p>
  
  <pre><code>xcopy "$(ProjectDir)\FolderToCopy" "$(TargetDir)\FolderToCopy" /D /E /I /Q /Y
  </code></pre>
  
  <p>(<a href="http://www.computerhope.com/xcopyhlp.htm" rel="nofollow noreferrer">xcopy syntax</a>)</p>