Get Public Key Token for a Strong Named Assembly

While extending the Visual Studio development you might need to extract the public key token for a strong named assembly.

For example if you would like to use the InternalsVisibleToAttribute (Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly) you will need to extract the Assembly’s Fully Qualified Name.


Below are the simple steps to extend the visual studio

Open Visual Studio

Go to Tools –> External Tools

Click on “Add” to add a tool, and put in the following values:

Title: Get &PublicKeyToken

Command: C:Program FilesMicrosoft SDKsWindowsv6.0ABinsn.exe

Argument: -Tp $(TargetPath)

Select the “Use output window” option

Now go to Tools>select Get PublicKeyToken option

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s