Global Assembly Cache (GAC)
In this blog, I’m explaining the concept of global assembly
The Global Assembly Cache is a machine-wide store used to
hold assemblies that are intended to be shared by several applications on the
machine. Each computer where the common language runtime (CLR) is installed has
a global assembly cache. The global assembly cache stores mostly shared
assembly. The assembly may be used by more than one application and more than
one version of the assembly may be required. Multiple versions can sit
side-by-side in the GAC.
In the .NET, for shared assembly two tools one is windows
shell extension allows you to work with the cache using Graphical User
Interface (GUI) and another one is a command line tool, called the Global
Assembly Cache tool (Gacutil.exe), that is typically used in build and test
Global Assembly Tool
This tool allow you to view and manipulate
gacutil [options] [assemblyName | assemblyPath |
The name of an assembly.
The name of a file that contains an assembly manifest.
: The path to an ANSI text file that lists assemblies to install or uninstall.
/i assemblyPath :
Installs an assembly into the global assembly cache.
: Installs one or more assemblies specified in assemblyListFile into the
global assembly cache.
: Lists the contents of the global assembly cache. If you specify the
assemblyName parameter, the tool lists only the assemblies matching that name.
/u assemblyName :
Uninstalls an assembly from the global assembly cache.