Assembly Registration Utility (gac.exe)

You can use gac.exe to install and uninstall an assembly, as well as to list the content of the GAC. The following table shows some of the common usages of the Assembly Registration Utility:

Option

Description

-l

To list the content of the GAC.

-lc

To list the content of the GAC.

-i filename

To install an assembly with file named filename into the GAC.

-u assemblyname

To uninstall an assembly from the GAC by specifying the assembly name. If multiple versions of the same assembly exist, all of them will be removed unless a version is specified with the assemblyname (i.e., gac -u myAssembly,ver=1.0.0.1).

Get .Net Framework Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.