Monday, April 6, 2015

Getting public key token for a dll using PowerShell Script


Getting public key token for a dll using PowerShell Script:

([system.reflection.assembly]::loadfile("C:\Windows\Microsoft.NET\assembly\GAC_MSIL\GroupDropDownList\v4.0_1.0.0.0__22c2902360f8dd14\GroupDropDownList.dll")).FullName

It will give the result as:
GroupDropDownList, Version=1.0.0.0, Culture=neutral, PublicKeyToken=22c2902360f8dd14