Home » General Scripting and Coding » ASP.Net » Getting Public Key Token of Assembly with Powershell

Getting Public Key Token of Assembly with Powershell

Posted on by

When I need to add definitions to the web.config of my ASP.Net projects I often use this Powershell line to get the PublicKeyToken, Culture and Version etc.

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

Running this will yield a similar output to the following:

AlkaneSolutions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=aa13051522563c02

Comments have now been disabled. If you have a question to ask about this post please ask the community!