My new blog

My blog has moved to www.davehunter.co.uk/blog see you there.

Wednesday, 25 July 2007

Tip - Quickly find out an assembly's public key

When working with MOSS / WSS you need to find out the Public Key Token of your assembly for a feature, manifest or the web.config file.

One of the ways to retrieve the Public Key Token is to build the project (making sure the assembly is signed) and drop the assembly in the Global Assembly Cache (GAC).

You can however use the SN.EXE (.NET Strong Name Tool) with the -T parameter (please note the uppercase -T).

For example:
sn.exe -T MyAssembly.dll

No comments: