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