Global Assembly Cache Tool (Gacutil.exe)
This page is specific to:.NET Framework Version:1.1
.NET Framework Tutorials
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)

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View