You need to assign a strong name to an assembly to place it in the GAC and make it globally accessible. A strong name consists of a name that consists of an assembly's identity (text name, version number, and culture information), a public key and a digital signature generated over the assembly. The .NET Framework provides a tool called the Strong Name Tool (Sn.exe), which allows verification and key pair and signature generation.
To create a strong-name key file-
- Start Visual Studio Command Prompt.
- At the command prompt, navigate to the location where you want to create the key file.
- At the command prompt, type sn -k <key file name>.snk, and then press ENTER.
- At the command prompt, type exit, and then press ENTER.
No comments:
Post a Comment