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

 



Advertise Here
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.

 

Great Visual Studio Theme for download

by naspinski 4/17/2008 11:22:00 AM

After using this theme, I can barely use the old white background default at all

   The default color scheme for VS is just terrible, the guys at: Wekeroad came up with an awesome 'Vibrant Ink' theme which was apparently stolen from TextMate (Apple) is just great as you can see (the colors are a bit muted in my picture).  Easy on the eyes, and very distinct - I think i actually helped my coding! Thanks Wekeroad!





And my modification with a lighter background, better font/size and improved highlighting: