How to Get the Private Key of a .NET assembly present in GAC

Hi, we can get the private key using two methods using the sn command and other using the folder property view

For Example : I have taken - DynamicMapsInBizTalk.Maps.dll this is the dll present in the GAC.

1) Using the sn command – First open Visual Studio command promt and then change to the working directory to  in the GAC where the dll is present using the cd command.
Then use sn command with option T as shown below

Example : sn –T DynamicMapsInBizTalk.Maps.dll

2) Directly From the folder Name in the GAC  - Here after the last underscore in the folder name gives the private key

For more information about GAC, refer my previous blog at - 
http://pnsoftwarestudies.blogspot.com/2013/06/GlobalAssemblyCache.html

No comments: