2013. 9. 26. 05:41
How to find the public key token for a .NET DLL or assembly
2013. 9. 26. 05:41 in 7. Tips/Visual Studio

Public Key Tokens with sn
Just run sn -T followed by your DLL or assembly. Here’s an example:
PS > sn -T "C:\dev\System.Data.SQLite.dll"
Microsoft (R) .NET Framework Strong Name Utility Version 3.5.30729.1
Copyright (c) Microsoft Corporation. All rights reserved.
Public key token is db937bc2d44ff139
Public Key Tokens with gacutil
If the DLL is in the GAC, you can do the same thing with gacutil:
PS > gacutil -l System.Data.SQLite
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
The Global Assembly Cache contains the following assemblies:
System.Data.SQLite, Version=1.0.84.0, Culture=neutral,
PublicKeyToken=db937bc2d44ff139, processorArchitecture=AMD64
Number of items = 1