Use WinMerge, it rocks.
Look at
http://winmerge.org/
"Yash" <(E-Mail Removed)> wrote in message
news:b1fa8009-ae46-4020-8645-(E-Mail Removed)...
> In our production environments we have the app.config files for
> version 1.0 of our app. On each server the file contains a number of
> settings including connection strings, WCF endpoints etc. which were
> made by the deployment engineer.
>
> When version 2.0 is released, it will have a number of more sections
> added to the config file. We would like to merge the new config file
> with the existing one such that:
> -For sections and parameters that have not changed, the existing
> setting will be retained.
> -New sections will be added with the values as given in the new config
> file.
> -Sections that have been deleted in the new file will be deleted from
> the existing file.
>
> Is there a tool to do this automatically?
>
> Thanks,
> Yash