To set a reference to a shared assembly

Source: Internet
Author: User

The GAC's assemblies can contain references that are related to them.

After you set a reference to the GAC assembly, you cannot delete the GAC assembly separately

If you want to remove an assembly from the GAC, you must delete the relevant reference

The type of reference can be one of the following 3 options:

--------------Uninstall_key: Used by MSI

--------------FILEPATH: You can specify a directory

For example:

To set a reference to a shared assembly

Gacutil-i assembly.dll-r filepath C:\Users\Administrator\Desktop\Timber.Assembly\Timber.Assembly\bin\Debug "ASB"

Uninstalling the GAC assembly (the first type)

Gacutil-u assembly.dll-r filepath C:\Users\Administrator\Desktop\Timber.Assembly\Timber.Assembly\bin\Debug "ASB"

Uninstalling the GAC Assembly (the second type)

1. Delete the C:\Users\Administrator\Desktop\Timber.Assembly\Timber.Assembly\bin\Debug folder

2,gacutil-u Assembly.dll

--------------OPAQUE: Reference type allows you to set any type of reference

For example:

To set a reference to a shared assembly

Gacutil-i assembly.dll-r opaque 1111 "AA"

Uninstalling the GAC Assembly

Gacutil-u assembly.dll-r opaque 1111 "AA"

This article is from the "program Ape's Home--hunter" blog, please be sure to keep this source http://962410314.blog.51cto.com/7563109/1589598

To set a reference to a shared assembly

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.