Sn is a tool for generating keys in. net.ProgramA public key pair is required for strong signature. This tool can be used to generate a key file and view the public key in the file, you can also use this tool to perform a strong signature on the Assembly. This tool is also required when the signature is delayed. This tool is generally in the path c: \ Program Files \ microsoft sdks \ windows \ v7.0a \ bin. Start the tool on the following page:
After the startup, the main interface is used for help. You can view the meaning of each name. The following describes several common commands.
1. Generate a key file sn.exe-k <FILENAME>
The generated key file mykeys. Keys contains both the public key and the private key.
2. Export a file named sn.exe-P mykeys. Keys mypublickeys. Keys that only contains the public key from the key file.
3. view the Public Key sn.exe-TP in the public key file <FILENAME>
4. disable the system from checking the integrity of the Assembly sn.exe-VR <assemblyname>. Start the runtime sn.exe-vu <assemblyname> in the system checklist. (Used when the signature is delayed)
5. Use the private key file to delay the signing of the Assembly. sn.exe-r <assemblyname> <privatekeyfile>
Note: The sn.exe command is case sensitive and has different meanings. Second, sn.exe does not provide a command to view the private key. In addition, some common functions of sn.exe can be implemented through the interface in the vs compiler.