loads of useful information, examples and tutorials pertaining to web development utilizing asp.net, c#, vb, css, xhtml, javascript, sql, xml, ajax and everything else...

 

C-Sharpener.com - Programming is Easy!  Learn Asp.Net & C# in just days, Guaranteed!

Extracting a Public Key Token from an Assembly in Visual Studio

by naspinski 8/26/2008 4:03:00 AM

How to get that mythical number/letter combination

It is not an extremely common need to get your public key token from a dll, but when the problem arises (custom SharePoint development) it is nice to be able to figure it out.  Turns out it is very simple; once you actually figure out how to get it that is.

 

All you need to do is go into your VS command prompt: 


Start->All Program->Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 Command Prompt

-or-

Start->All Program->Visual Studio 2008->Visual Studio Tools->Visual Studio 2008 x64 Cross Tools Command Prompt 

 

Once you are in there, just type the command:


sn -T <location of dll>

 

and it will spit out your Private Key Token.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

visual studio

Related posts

Add comment

Name*
E-mail* (Gravatar)
Website
Country   Country flag

Comment* [b][/b] - [i][/i] - [u][/u]- [quote][/quote]




Live preview

12/1/2008 3:15:20 PM