Thursday, April 23, 2009

Generate Public Key Token of a signed assembly

I had to google a little for this. Finally found some help. Listing it down here. I lost my bookmark. Thanks to the guys who found this out.

  1. In Visual Studio 2005, click Tools -> External Tools...
  2. Click Add and enter...
  • Title: GeneratePublicKeyToken
  • Command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe (or search for sn.exe and add that path)
  • Arguments: -Tp "$(TargetPath)"
  • Uncheck all options, except Use Output window
A new entry is listed in the Tools menu titled GeneratePublicKeyToken



Build the dll once and the select this menu item from the Tools menu. You will have the blob and the Public Key Token in the Output Window



No comments:

Post a Comment