views:

862

answers:

6

Is there a good tool to compare specifically web.config files to find specifically which settings are different values and which file has settings that don't appear in both.

XML comparison should do the trick, or an XSLT might work. There must be a tool for web.config settings out there?

A: 

Use diff

It will neatly point out the exact lines and text that is different.

Diff Utilities are available for windows as well. Download here.

Mohit Nanda
Let's just say the config files aren't sorted in the same way, a diff tool won't show this as well as a bespoke web.config file difference tool might.
digiguru
+2  A: 

BeyondCompare amongst many other utils

annakata
BeyondCompare isNOT free.. as far as i know. isnt it?
Mohit Nanda
Nice tool though! I think Jeff Atwood has mentioned this on the SO Podcast.
BobbyShaftoe
Well if it isn't free the licence expiry code is buggy :)
annakata
who downvotes beyond compare?
annakata
A: 

Wikipedia has a comparison of file comparison tools. Take your pick :o)

DeletedAccount
yeah.. the word comparison is in that sentance too often!
DeletedAccount
A: 

Use winmerge.

You should get used to version control, subversion and tortoisesvn are recommended, and ankhsvn provides svn access from Visual Studio.

gimel
+3  A: 

WinMerge will help you best if you format both your files... you can format in Visual Studio itself and then compare in WinMerge...

Samiksha
A: 

In my experience, Araxis merge is the best tool for comparing any documents:

http://www.araxis.com/merge/index.html

Use it myself at work.

Shahin