Getting the PublicKeyToken of .Net assemblies

前端 未结 13 1096
忘掉有多难
忘掉有多难 2020-11-30 16:57

What is the simplest way to find the Public-Key-Token of an assembly?

The simplest way I can think of would be a simple right-click, get public key, but this functio

13条回答
  •  再見小時候
    2020-11-30 17:42

    The simplest way for me is to use ILSpy.

    When you drag & drop the assembly on its window and select the dropped assembly on the the left, you can see the public key token on the right side of the window.

    (I also think that the newer versions will also display the public key of the signature, if you ever need that one... See here: https://github.com/icsharpcode/ILSpy/issues/610#issuecomment-111189234. Good stuff! ;))

提交回复
热议问题