3

is there any easy way to get the fully qualified name for assembbly? e.g.

<section name="unity" type=" Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
Nil Pun
  • 16,019
  • 34
  • 150
  • 277
  • 1
    possible duplicate of [How can I retrieve an assembly's qualified type name?](http://stackoverflow.com/questions/441680/how-can-i-retrieve-an-assemblys-qualified-type-name) – Preet Sangha Aug 27 '11 at 22:34
  • 1
    Possible duplicate of [How do I find the fully qualified name of an assembly?](http://stackoverflow.com/questions/658446/how-do-i-find-the-fully-qualified-name-of-an-assembly) – David Clarke Jan 23 '17 at 20:01

2 Answers2

9

This is a shameless copy-paste from I Note It Down and is a simple way to get the FQAN 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.

David Clarke
  • 12,002
  • 8
  • 80
  • 105
6

This article (How to: Determine an Assembly's Fully Qualified Name ) will probably help you


Code from MSDN

//s if the Fully Qualified assembly name
Type t = typeof(System.Data.DataSet);
string s = t.Assembly.FullName.ToString();
msarchet
  • 14,518
  • 2
  • 40
  • 64
genesis
  • 48,512
  • 18
  • 91
  • 118