For background information, please read my blog on Assembly Identity
Assembly Identity — ReferenceIdentity and DefinitionIdentity, Comparison and Transformation
As we learn from the article, there are three types of assembly identity comparison: Ref-Ref, Def-Def, and Ref-Def.
Ref-Ref and Def-Def is pretty straightforward. You basically compare all the attributes.
Ref-Def comparison is a little bit complicated, especially given in CLR we don’t compare the version number for non-strongly named assemblies.
Thus we invented this API AssemblyName.ReferenceMatchesDefinition for your disposal.