Get PublicKeyToken of DLL

Many times I wondered how can I get PublicKeyToken of DLL file so for that here is the found trick to get it using PowerShell, below is the statement to be executed:

([system.reflection.assembly]::loadfile("C:\SomeDLL.dll")).FullName

The output will provide the VersionCulture and PublicKeyToken as shown below:

SomeDLL, Version=1.0.0.0, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.