I am comparing to make sure 2 dlls are generated from same source. As I could not use external tools to compare, I just created IL files using IL disassembler and comparing manually.
For the below fields in a .IL file , the count is same while comparing.
// CLR method headers :
// Num.of method bodies -
// Num.of fat headers -
// Num.of tiny headers -
// Managed code :
// Ave method size -
Order of class names are not same while count and names are same .
Is it safe to assume for the above scenarios that both DLLs are from same source code?
You can use ILSpy to decompile both DLLs. Use Save Code... option for both libraries, so you can save it as complete Visual Studio project (csproj). Then simple WinMerge (with recursion) on both directories will show you all differences in the source code.
I've recently successfully used this approach to make sure what version of DLL was used on production machines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With