Getting the PublicKeyToken of .Net assemblies

前端 未结 13 1088
忘掉有多难
忘掉有多难 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:54

    You can add this as an external tool to Visual Studio like so:

    Title:

    Get PublicKeyToken
    

    Command:

    c:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\sn.exe
    

    (Path may differ between versions)

    Arguments:

    -T "$(TargetPath)"
    

    And check the "Use Output window" option.

提交回复
热议问题