Global Assembly Cache Tool (Gacutil.exe)

The .NET utility library that manages the assembly cache also provides a command-line interface tool, named the Global Assembly Cache utility (Gacutil.exe). To use the utility to list all the assemblies in the global assembly cache (GAC), use the /l switch:

gacutil /l

To add an assembly to the GAC, simply use the /i swith with the name of the assembly that contains the manifest:

gacutil /i reverser.dll

To remove an assembly, use the /u switch, and specify the name of the assembly without the .dll extension:

gacutil /u reverser

However, if there is more than one assembly with the same name, it will be unclear which assembly to remove. In that case, it will be necessary to specify additional parameters, such as those in the following command:

gacutil /u reverser,Version=1.0.0.0,Culture=neutral,PublicKeyToken=ddb7f03f08dc7c0f

See Also

MSIL Disassembler (Ildasm.exe) | Strong Name Tool (Sn.exe)