How do I change the working directory while debugging in Visual Studio?

Set a post build event on your project to move the configuration file into the debug build directory.

Right click on the project that will require the configuration from a different project and select properties, click on the build events tab, and add a post build event. Something like this:

Copy configFilePath $(TargetPath)

I solved this problem by going to the project properties compile tab, and changing the build output path. Hopefully this will work for you.

I believe you will need to change that back to bin\ when you are ready to do a release build.


In the project properties, open the debug tab. In there, you will find a textbox to change the working directory.