Friday, March 25, 2011

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  

No comments:

Post a Comment