APIs for compare assemblies .NET (Reflection, MSIL) programmatically
For example I have Assembly1.dll (1.0.0.0) and Assembly1.dll (1.0.0.0), in differents f开发者_Go百科olders and I want to compare differences (if each assembly has the same Classes and each class the same methods, or compare all MSIL code). any APIs for do this?
There are tools, like this Compare compiled .NET assemblies?, but I need use APIs for integrated code in my custom applications, scripting and addins.
If you want an API and not a canned tool, why not use System.Reflection to construct the API that you need?
You could also checkout Mono.Cecil. (it is the library internally used by other tools like NDepend).
If you need to do detailed comparisons down to the content of methods, you can use the FxCop API (which is normally used to write FxCop rules). It uses an introspection model that is much richer than reflection.
精彩评论