Wednesday, 6 April 2016

What is a strong name?

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-
  1. Start Visual Studio Command Prompt.
  2. At the command prompt, navigate to the location where you want to create the key file.
  3. At the command prompt, type sn -k <key file name>.snk, and then press ENTER.
  4. At the command prompt, type exit, and then press ENTER.

No comments:

Post a Comment

Featured post

What is SharePoint?

Microsoft SharePoint is an extensible platform that provides a range of products that can help organizations with solution for a variety...