Replies: 2 comments 1 reply
-
Good idea. I think some fields such as comments, white lines etc should be eliminated from the compare function. I also think the compare should be C# based rather than IL/hex. Interesting you mentioned WinMerge that is the program I use for that type of work. Suggestion perhaps if its too big a project to add as a function maybe a plugin to use winmerge if installed? |
Beta Was this translation helpful? Give feedback.
-
Hi, this feature was already proposed as part of #51. I didn't yet comment on it so I might as well do it now, implementing this feature is hard. For finding the differences between two text inputs, we could utilize a library so that is not a problem. There are however other rather difficult things to consider when it comes to diffing .NET assemblies.
To summarise this is a feature I am interested in implementing however, due to its complexity it's currently not a priority of mine. As for alternative ways to diff assemblies current one could choose the most appropriate member sorting option in the decompiler settings, export two projects using dnSpy, and compare them using software like WinMerge. As for export speed, the export project option decompiles one class per CPU core so it shouldn't be a concern on modern hardware. Comments, opinions suggestions welcome as always :) |
Beta Was this translation helpful? Give feedback.
-
The ability to take two files and do a 1-for-1 compare. Then find the differences in the source.
The current workaround is a little clunky.
Example
Load file CALC_V1.exe and dump as a project
Load file CALC_V2.exe and dump as a project
I then load up an application called WinMerge and compare the source differences, for changes between versions of the same file. Hope this makes sense.... It would be epic if this was built into dnspy.
Thanks -dk
Beta Was this translation helpful? Give feedback.
All reactions