AssemblyName.ReferenceMatchesDefinition


For background information, please read my blog on Assembly Identity


Assembly Identity — ReferenceIdentity and DefinitionIdentity, Comparison and Transformation
http://blogs.msdn.com/junfeng/archive/2005/04/05/405436.aspx


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.

Comments (2)

  1. If you haven’t noticed, assemblies in .Net framework 2.0 have a new name attribute ProcessorArchitecture….

  2. If you haven’t noticed, assemblies in .Net framework 2.0 have a new name attribute ProcessorArchitecture….