The Global Assembly Cache

The GAC is a storage area where the CLR can locate shared assemblies; shared assemblies don’t have to be installed in the GAC to be used by applications, but doing so can ease the burden of system administration; see the Assembly Versions section later in this appendix for more details of how the GAC can be used.

The Global Assembly Cache Tool (gacutil.exe) is used to install shared assemblies in the GAC; the following command installs the StringPrinter assembly:

gacutil -i StringPrinter.dll

The .NET Framework includes a Windows Explorer extension that is used to view the GAC. Navigate to the assembly subdirectory of the Windows directory (usually either C:\WINNT\assembly or C:\Windows\assembly). The list of shared assemblies ...

Get C# for Java Developers 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.