Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Merging 2 config files

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

like image 336
G33kKahuna Avatar asked Oct 21 '25 06:10

G33kKahuna


2 Answers

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.

like image 121
bryanmac Avatar answered Oct 23 '25 20:10

bryanmac


You can use any merge tool. Here's one example - SourceGear Merge

http://www.sourcegear.com/diffmerge/

like image 43
Jakub Konecki Avatar answered Oct 23 '25 19:10

Jakub Konecki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!