I have a web application that is deployed with web.config file. Are there any tools/ pre-written deployment code that allows merging 2 web.config files including sections? If there is a section already existing, it should just merge the contents
Thanks in advance. Any guidance is much appreciated
Have a look at XmlConfigMerge
The XmlConfigMerge utility (provided both as a library assembly and as a console application) supports this merging of XML .config files, and also supports setting of specific parameters via XPath filtering and optional Regex pattern matching.
You can use any merge tool. Here's one example - SourceGear Merge
http://www.sourcegear.com/diffmerge/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With