How can I specify a single .config file for multiple EXE projects in .NET

Posted by Russ on Stack Overflow See other posts from Stack Overflow or by Russ
Published on 2010-05-10T19:48:16Z Indexed on 2010/05/10 19:54 UTC
Read the original article Hit count: 200

Filed under:
|

I have a project that I am breaking up into multiple .exe projects. I still plan on publishing them, using click once, into the same location at the same time, and I would like to use the same config file.

I have added the app.config to each project using the "Add link" option in Visual Studio, which is great for debugging, but in production, when I compile each exe project, the app.config is not copied into the "master project"'s bin folder.

example:

master.exe with master.exe.config

master.exe may launch order.exe based on user settings master.exe may launch returns.exe based on user settings

master, order, and returns will all reside in the same folder, and should share a single config file.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about configuration