How to compare assemblies?


I recently had a "castostrophy" where my entire project code was deleted except for the debug binary (because it was running and couldn't be deleted). I had a backup copy of the code from about 3 days prior, but a lot had changed in that time.

I am using dotPeek to reconstruct the deleted code, however I am afraid that I will miss some things - little bug fixes that I forgot about. I would like to be able to load the assembly from before the deletion and the one I am compiling now and compare the code - preferably the decompiled code. Now I could go through every class in both assemblies, copy the code to a text document, and then use a simple text comparison tool (like "diff") to look for differences. But it would be nicer if something better existed. One things that seems like it should already exist is the ability to export the decompiled code from an assembly to ".cs" files. This alone would save me quite a bit of time (I am not looking forward to copy-pasting 2* 50 or so files especially after what I already have to do).

Now if a direct comparison tool existed in the program, that would be even cooler! If one of the pay-for tools has this ability, that would be great as well.

Thanks for any assistance!


Please sign in to leave a comment.