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:

WordPress.com Logo

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

Google photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s