Reputation: 13129
I have a .NET application which is supposed to run in multiple environments for eg. DEV, PROD. I have several config files like COMMON.config, app.config, DEV.config, PROD.config, etc.
For Development environment I want to merge app.config, COMMON.config and DEV.config.
For Production environment I want to merge app.config, COMMON.config and PROD.config.
Is there a way to achieve this via pre/post build events ?
Most of the information available online are for web.config.
Upvotes: 0
Views: 896
Reputation: 13129
Found useful information at: http://www.codeproject.com/Articles/27178/Config-Customization-at-Build-Time-in-Visual-Studi
It used build events to make call to a small program that does the merging.
Upvotes: 1