Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I find the fully qualified name of an assembly?

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.

like image 500
Ian G Avatar asked Mar 18 '09 14:03

Ian G


People also ask

What is fully qualified type 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.

How do I find assembly information?

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#).

What is assembly name in visual studio?

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).

What is assembly title?

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.


1 Answers

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.

like image 119
David Clarke Avatar answered Oct 18 '22 15:10

David Clarke