tags:

views:

51

answers:

5

How to compare 2 versions of a compiled .NET assembly to see changes between the 2 versions? I have a library not well-documented and I need to know what has been changed between the old version and the new version.

+1  A: 

Use Red Gate's .NET reflector and you'll be able to take a look at the actual code changes between the assemblies.

fletcher
+1  A: 

I use reflector, with the Diff plugin.

You might also find this Hanselman post useful, as it reviews other tools, including Reflector Diff.

http://www.hanselman.com/blog/ManagingChangeWithNETAssemblyDiffTools.aspx

kbrimington
+4  A: 

In addition to Reflector, you can use NDepend to perform this task. Please note that this is a commercial software, but the site offers a free trial. Here's an online tutorial on how one can use NDepend to compare two assemblies.

Mikael Koskinen
A: 

Do you have the code or just the assemblies? In case you have the compiled versions, one way is to dig into them using the object browser in visual Studio. The other approach might be using disassembler like Red Gates Reflector to see to the source code.

Kangkan
+2  A: 

NDepend is really what you need to compare compiled .NET assemblies:

Step1: ask for changes (here ask for methods where code was changed or was added) alt text

Step2: compare source code method bodies (if you have PDB files and source code),

Step2 Bis: compare 2 versions of the IL code of a method within one click (NDepend will use automation on Reflector for that). alt text

Patrick Smacchia - NDepend dev