c# - How to merge xml app.config files outside of the build process -


i use app.config files settings, don't want have select different build configurations select settings use, rather build in release , app.config file different when application deployed.

what way merge 2 xml files can deploy correct settings correct environment? have found several solutions based on selecting different build configurations , transform happens @ build time, want transform command line utility deploy script can run

at company, use web config transformation runner, available on github. may invoked directly command line, bit this:

d:\utils\webconfigtransformrunner.exe app.config app.production.config app.config 

we've incorporated larger packaging , deployment process handle deploying our various environments.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -