I have a project that comes along with some custom xml files. These files are currently simply stored in a "Data" folder and part of the project so I can use Visual Studio to edit those files.
When building, I want all of those files to be copied over to a specific data directory. But I couldn't find a way to achieve this in a way that seems "clean".
What I tried so far:
- Messing around with the output settings of the project. This ist not very satisfying as the data path and and the target path for the project have nothing in common.
- Creating an "empty" c# project with an output path adequate for the datafiles. This always puts an "empty" dll into the target path. I actually quite liked this idea of having a "data only" project, but none of the projects provided by Visual Studio seem appropriate.
- Running a batchfile postbuild. This works (and is what I am doing currently) but seems hacky to me, because it operates "behind the scenes".
Has anyone found a good way to deal with this problem?