I'm trying to create a tool that is smart enough to programmatically examine executable versions of versions created by identical C # code, compiled on two separate machines at different times, and concluded that the code was identical when it could pick up any code changes, if present in C # code used to create these binaries.
I tried to use several approaches, but in order to keep this short, I will just stick to the last attempt. I run ildasm with the / text option in binaries and replace the GUIDs for anonymous fields, etc. In the text, but when the binaries come from different computers, I find that the text created using the ILDASM / text option is reordered. Binary files created from the same code, but compiled using the same settings on different machines, are also greatly reordered. Any suggestion on how to control this reordering of IL would be highly appreciated?
Greetings
PS: Any alternative strategies for doing this reliably are also welcome.
source share