开发者

How to get fully qualified assembly name

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

<section name="unity" type=" Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Micro开发者_StackOverflowsoft.Practices.Unity.Configuration, Version=2.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>


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.


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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜