Compare Two DLL's

2019-04-10 02:41发布

问题:

Scenario

I have a C# application compiled as a DLL. I have a build from last week and a build from this week. There has been a significant change in performance so I want to compare the the two builds to see what has changed.

ANY IDEAS?........SUGGESTIONS?

Cheers

EDIT:

Yes it would be better to compare the source code from version control........except we are using TFS, not by choice, and even with the bolton application TFS takes source control to a whole new level of shite........it's very difficult to revert without messing around with workspaces etc....i just thought the DLL approach would be easier...The application is a monster as well......

回答1:

I would recommend to disassemble two libraries with the Reflector (right click on the assembly -> Export) and then compare directories generated with some merging tool, like WinMerge.



回答2:

Wouldn't it be better to profile the two dll? You will find where in the second one you are spending more time than in the first. This should give you an indication of what has gone wrong.



回答3:

Today the same can be done with JetBrains dotPeek. Load the dll right mouse button -> export to project and compare in WinMerge



回答4:

An updated answer to this question, if it is a dll written in C#, I would recommend dotPeek by JetBrains. Its free! After decompiling, you can copy the code text into a text editor like Notepad++ that allows you to compare two text files.



标签: c# .net dll