What is an Asssembly Qualified Name
An Assembly Qualified Name (AQN) is a fully qualified name that uniquely identifies an assembly in the .NET Framework. It includes the assembly's display name, version, culture, and public key token (if applicable), providing a complete and unambiguous identifier for the assembly.
Format of an Assembly Qualified Name
The format of an Assembly Qualified Name is typically represented as follows:
- The assembly display name specifies the name of the assembly without any version or culture information.
- The version represents the version number of the assembly.
- The culture denotes the specific culture or language that the assembly supports.
- The public key token, if present, is a unique identifier for assemblies signed with a strong name using a cryptographic key pair.
An assembly's name is stored in metadata and has a significant impact on the assembly's scope and use by an application. The display name of an assembly is obtained using the Assembly.FullName property. The runtime uses this information to locate the assembly and differentiate it from other assemblies with the same name.
C# source CodeYou can use the Global Assembly Cache Tool (Gacutil.exe) to view the fully qualified name of an assembly in the global assembly cache.
You can view it through the command prompt, type : gacutil -l
The Assembly Qualified Name is often used in various scenarios, such as specifying assembly references in code, configuration files, or deployment manifests. It ensures the precise identification of assemblies, enabling the runtime to locate and load the correct version of an assembly when it is needed.
Conclusion
By using the Assembly Qualified Name, developers can accurately reference and manage assemblies within their applications, ensuring the appropriate version and culture-specific behavior.