Wednesday, December 10, 2008

Public Token key for the assembly

Scenario:
Sharepoint require most of the assemblies to be strongly named and referenced using 4 part name of the assembly.

Solution:
You can use sn.exe utility to get the public token key for your assembly

Code:


"C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\sn.exe" -T MyAssembly.dll

or

"C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sn.exe" -T MyAssembly.dll
Article:
http://grounding.co.za/blogs/brett/archive/2007/11/02/determine-the-public-key-token-for-assembly.aspx

0 comments: