How to compare 2 versions of a compiled .NET assembly to see changes between the 2 versions? I have a library not well-documented and I need to know what has been changed between the old version and the new version.
You can even compare entire directories. This is of course if you just need to know if they're the same, since it won't show you any code.
There are three types of assemblies: Private assemblies. Shared assemblies. Satellite assemblies.
JustAssembly ensures that you're not introducing breaking changes into your API when releasing a new version of your product.
In addition to Reflector, you can use NDepend to perform this task. Please note that this is a commercial software, but the site offers a free trial. Here's an online tutorial on how one can use NDepend to compare two assemblies.
The tool NDepend offers many features to handle .NET code diff. Disclaimer: I am one of the developer of the tool.
The panel Search by Change is dedicated to browse assemblies code diff. Notice that:
Notice also in the screenshot that a CQLinq code query is generated to browse the diff.
from m in Application.Methods
where m.CodeWasChanged()
select new { m, m.NbLinesOfCode }
Many others default diff queries and rules are proposed by default, that will let you browse .NET code diff in a smart way.
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