Monday, September 15, 2008

Get Public Key Token(PKT) in VS 2005 for signed assembly

Here is the easiest way to get public key token in the vs 2005.
1. In Visual Studio 2005, click Tools -> External Tools...
2. Click Add and enter the following into the different fields.
* Title: Get Public Key
* Command: C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe
* Arguments: -Tp "$(TargetPath)"
* Uncheck all options, except Use Output window\