Monday 10 March 2014

How to get Public Key Token in asp.net

How to get Public Key Token in asp.net
Here i am going to tell a process to add "Get Public Key Token" Option to Visual Studio.
If you select this Option you will get "Public Key Token".
Here just i am going to Use sn.exe which has provided by microaoft.
I am going to tell you the steps required to get Get Public Key Token" option in Visual Studio.
Step1:In the Visual Studio, go to Tools, and chose "External Tools..." option
Step2:You will get one prompt.
a)Title as “Get Public Key Token”
b)Command as “C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\sn.exe”.
Remember,if you installed Windows SDK then the above location works, otherwise please chose the location where SN.EXE presents.You can click on browse(...) option also
c)Arguments as “-Tp "$(TargetPath)"”
d)And uncheck all checkboxes at bottom and check only the option “Use Output Window”
Step3:click OK button and go to tools, you will see there is a new menu item added in the list.
Step4:Once you build the class library project, then just click on this “Get Public Key Token” option. From the output window, you will see the BLOB of the DLL and public key token