Go to: how to install the DLL assembly to GAC?

Source: Internet
Author: User

How to install the Assembly in GAC?

  1. First, you must assign a strong name (strong name) to the Assembly, which is actually the key used for signature.
  2. Select the start/all programs/Microsoft Visual Studio. NET 2003/Visual Studio. NET tool/Visual Studio. NET 2003 command prompt menu to go To the. NET 2003 Command Prompt window.
  3. Enter Sn-k c:/yoursnfile. SNK in the command prompt.
  4. Open the assemblyinfo. CS file of the project to be installed, find the [Assembly: assemblykeyfile ("")] Code, and add the key file to it:
    [Assembly: assemblykeyfile (@ "C:/yoursnfile. SNK")]
  5. Recompile the project.
  6. Return to the. NET 2003 Command Prompt window and enter the following command:

Gacutil-I "C:/changetoyourpath/test. dll"

The content of double quotation marks is replaced by the actual Assembly file name.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.