To assign a strong-name key to the Class library

In this section, you assign a strong-name key to the class library.

  1. In Solution Explorer, right-click the bold project name that is in bold type, and then select Properties.

  2. Click the Signing tab.

  3. Select the Sign the assembly checkbox.

  4. From the Choose a strong name key file: combo box, select <New...>

  5. In the Create Strong Name Key dialog box, in the Key file name: text field, enter a string value.

> [!NOTE]
> <P>For example, a possible string value could be your last name and today's date.</P>
  1. Clear Protect my key file with a password, and then click OK.

  2. Close the Signing window.

  3. From the Build menu, click Build Solution.

  4. Close Visual Studio.

Next, you add the assembly to the Global Assembly Cache (the GAC).