Global Assembly Cache Tool (gacutil.exe)

The Global Assembly Cache tool allows you to view and manipulate the contents of the global assembly cache.

This application file is named gacutil.exe on a Shared Source CLI (SSCLI) built on Microsoft Windows®.

Note: the SSCLI implementation of the gacutil tool does not support code download or precompiled JIT.

The following options of the gacutil tool supported on the Microsoft® .NET Framework implementation were removed from the SSCLI:

The following options are supported by the SSCLI implementation of the Global Assembly Cache tool.

Usage

gacutil [options] [assembly]
Argument Description
assembly The name of a file that contains an assembly manifest.

Options

Options can be specified using either a dash (-) or a slash (/).

Option Description
/i assembly Installs an assembly into the global assembly cache.
/l Lists the contents of the global assembly cache.
/nologo Suppresses the Microsoft startup banner display.
/silent Suppresses the display of all output.
/u assemblyfile Uninstalls a specified assembly, assemblyfile, from the global assembly cache.
/? Displays command syntax and options for the tool.

Remarks

The Global Assembly Cache allows you to install assemblies into the cache, remove them from the cache, and list the contents of the cache.

Examples

The following command inserts the file mydll.dll into the global assembly cache.

gacutil /i mydll.dll

The following command removes the assembly hello from the global assembly cache.

gacutil /u hello

Note that the prior command might remove more than one assembly from the assembly cache because the assembly name is not fully specified. For example, if both version 1.0.0.0 and 3.2.2.1 of hello are installed in the cache, the command gacutil /u hello removes both of the assemblies.

Use the following example to avoid removing more than one assembly. This command removes only the hello assembly that matches the fully specified version number, culture, and public key.

gacutil /u hello,
Version=1.0.0.1,Culture="de",PublicKeyToken=45e343aae32233ca

The following command lists the contents of the global assembly cache.

gacutil /l
See Also

Tools Index


Copyright (c) 2006 Microsoft Corporation. All rights reserved.