Creating a Key Pair

You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension.
To create a key pair
At the command prompt, type the following command:
sn –k
In this command, file name is the name of the output file containing the key pair.
The following example creates a key pair called sgKey.snk.
sn -k sgKey.snk

Showing Answers 1 - 1 of 1 Answers

samiksc

  • Jan 16th, 2006
 

To create a key pair use the dotnet command line tool sn.exe

sn.exe -k mykey.snk

This filename is used as the attribute value for AssemblyKeyFileAttribute in one of the code files of assembly. It generates a strong named assembly which could be installed into the GAC.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions