Copying files into the application folder at compi

2019-01-10 18:31发布

If I have some files I want to copy from my project into the .\bin\debug\ folder on compilation, then it seems I have to put them into the root of the project. Putting them into a subfolder seems to copy them into the .\bin\debug\ folder in the same structure they're stored in.

Is there any way to avoid this?

Just to be clear: if I have a MyFirstConfigFile.txt and MySecondConfigFile.txt in a ConfigFiles folder and I set their Copy to Output to be Copy..., then they appear in the .\bin\debug\ConfigFiles\ folder. I want them to appear in the .\bin\debug\ folder.

7条回答
Emotional °昔
2楼-- · 2019-01-10 19:00

You want to use a Post-Build event on your project. You can specify the output there and there are macro values for frequently used things like project path, item name, etc.

查看更多
登录 后发表回答