Where to get the public key token for a dll




















However, it is recommended to use it for a strong mapping of your assemblies. Before going further; What is the public key token? A good description :. Article Categories. Finding the public key token value of a. Add Comment. We need the public key token of. NET assembly. EXE while registering in configuration files. The solution is very easy, by using strong name utility sn.

Using sn. Public key token is bb1a0b2ec6 other ways of getting public key token are From GAC folder: If the dll is registered to GAC, then you find the public token by opening the folder. At the command prompt, change to the directory that contains the sn.

Type the following command. Press Enter and note the public token key that is displayed. Yes No. Any additional feedback? Joaquim Rendeiro Joaquim Rendeiro 1, 8 8 silver badges 13 13 bronze badges. All rights reserved. Public key token is b77a5ce WhiteKnight 4, 4 4 gold badges 35 35 silver badges 39 39 bronze badges. Prasanna Balajee Prasanna Balajee 1 1 silver badge 3 3 bronze badges. If you have Visual Studio and you can't find "Developer Command Prompt for VS" go have a look here how to fix it: stackoverflow.

Note that this tool does not come with Windows. This doesn't rely on Visual Studio or any other utilities being installed. Mike Honey Mike Honey Hiram Hiram 2, 1 1 gold badge 14 14 silver badges 13 13 bronze badges. If you open up a visual studio command prompt it should be on your path. Check this out: stackoverflow. FullName Will result in System. CRice CRice WriteLine Assembly. LoadFile args. FullName ; Console. GetCustomAttributes typeof System.

TargetFrameworkAttribute , false. GetReferencedAssemblies ; if assemblies. Vinod Srivastav Vinod Srivastav 2, 1 1 gold badge 22 22 silver badges 31 31 bronze badges.

You can also check by following method.



0コメント

  • 1000 / 1000