How to get the .NET Assembly full name

by Daniel Halan 23. March 2007 00:48

There is often that one need to get an assembly’s full name, while one can do it quite simply in C# by instancing the assembly and calling GetName(), but when setting up applications outside the development environment, You can use SN.exe to retrieve the PublicKeyToken using the -T parameter, but still it would be nice to get the whole Assembly Name, so here is a small command prompt app that does the job.

Example of an Assembly full name:
"GetAsmName, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=efc52db0448864e8"

 

 

Download the compiled application:
GetAsmName.zip (2,83 KB)

Download the source code:
GetAsmName-src.zip (2,51 KB)

Tags: , ,

.NET | Tools

Comments

11/1/2009 9:17:14 PM #

Jokun1

I guess there's always an easier way ...

Jokun1 United States | Reply

11/8/2009 1:13:49 AM #

Nardu

Generally I do not post on blogs, but I would like to say that this post really forced me to do so, Excellent post!

Nardu United States | Reply

2/1/2010 10:08:00 PM #

mobile

great resources here.
I'll be back for the next your posting.
keep writing and happy blogging.

regards,
mobile

mobile Syria | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Daniel Halan Daniel Halan solutions architect at Logica in Sweden.

Working primary with Microsoft Dynamics CRM.

Complete Profile

The content of this site are my own personal opinions and do not represent my employer's view in anyway.