How do I find out the fully qualified name of my assembly such as:
MyNamespace.MyAssembly, version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
I've managed to get my PublicKeyToken using the sn.exe
in the SDK, but I'ld like to easily get the full qualified name.
A fully qualified type name consists of an assembly name specification, a namespace specification, and a type name. Type name specifications are used by methods such as Type. GetType, Module. GetType, ModuleBuilder.
In Solution Explorer, the AssemblyInfo file is located in the My Project node for Visual Basic projects (click Show All files to view it). For C# projects, it's located under Properties. For more information, see Attributes (C#).
The Assembly name is simply the name of the compiled file that your code will be compiled to as either an executable or library etc... A question that I often see on this is should your assembly name be the same as the root namespace and also be the same as your project name (again in visual studio).
The assembly title is a friendly name, which can include spaces. In Windows Vista, the information specified for this attribute appears on the Details tab of the Windows File Properties dialog box for the assembly. The property name is File description.
This is a shameless copy-paste from I Note It Down and is a simple way to get the FQN for the project output:
Open Visual Studio Go to Tools –> External Tools –> Add Title: Get Qualified Assembly Name Command: Powershell.exe Arguments: -command "[System.Reflection.AssemblyName]::GetAssemblyName(\"$(TargetPath)\").FullName" Check "Use Output Window".
The new tool appears under Tools –> Get Qualified Assembly Name
. When the menu item is selected, the assembly name is given in the output window.
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