Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view public key tokens on DLL's

Tags:

c#

.net

Does anyone know of a way to view the public key token on a DLL? I'm investigating a possible mismatch between what is expected in code and what is being built.

Thanks in advance, It Grunt

like image 269
It Grunt Avatar asked Aug 25 '10 18:08

It Grunt


3 Answers

Use

Assembly.GetExecutingAssembly().GetName().GetPublicKeyToken();

or

sn -T YourAssembly.dll
like image 112
Incognito Avatar answered Oct 30 '22 17:10

Incognito


sn -Tp assembly.dll

will tell you what you need to know

like image 38
cristobalito Avatar answered Oct 30 '22 17:10

cristobalito


I started using ILSpy, alternative for Reflector.NET. After opening dll, you can view public key token, version and more.

like image 5
MorioBoncz Avatar answered Oct 30 '22 19:10

MorioBoncz