This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Apr 23, 2013 3:28 AM by Jeffrey Bush  
Jeffrey Bush Newbie 4 posts since
Apr 21, 2013
Currently Being Moderated

Apr 21, 2013 12:22 PM

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!

Alex Berezoutsky JetBrains 593 posts since
Feb 18, 2011
Currently Being Moderated
Apr 22, 2013 12:07 PM in response to: Jeffrey Bush
Re: How to compare assemblies?

Hi Jeffrey,


Thanks for the suggestion, however I'm not sure that it is really a decompiler-tool feature request, since there are lots of programs for comparing files and their content. Creating a dotPeek plugin for these needs sounds more logical.


Nevertheless, thank you for interrest in our products!

More Like This

  • Retrieving data ...