Generate the key file sn.exe (Strong Name toolkit, sn.exe strong

Source: Internet
Author: User

Generate the key file sn.exe (Strong Name toolkit, sn.exe strong

Visual Studio has a built-in Strong Name Tool. You can directly run the "VS developer command prompt" to generate a key file.

The key file contains the public key and private key.

 

Let's look at this example:

Create a new key file in the folder D: \ friend assembly \ friend signed. You can set the location where the key file is generated.

1. Run the "VS developer command prompt" command line

 

2. Enter the command line sn-k FriendAssemblies. snk (. snk is the key file format)

 

3. Separate the public key from the key file sn-p FriendAssemblies. snk FriendAssemblies. publickey

 

At this time, we can see that there are two more files in the folder.

 

 

 

4. display the Public Key sn-tp FriendAssemblies. publickey

 

Here are three commands. For more information, see sn.exe.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.