If the project has these directories
MyProject
- bin
- Debug
- program.exe
- Release
- program.exe
- program.cs
Where to place a data.csv
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?
Edit
I also needed to copy whole directories to output directory, but Visual Studio doesn't have this option. I found the answer here. If the Directory is huge (like in my case) it can be solved to copy only newer files using /D
xcopy attribute. In my case, I added this command to post-build events (Project->Properties) and it works great:
xcopy "$(ProjectDir)\FolderToCopy" "$(TargetDir)\FolderToCopy" /D /E /I /Q /Y