There are two ways to interact with the GAC: the Global Assembly Cache Tool (gacutil.exe) and the Assembly Cache Viewer (shfusion.dll).
Global Assembly Cache Tool gacutil.exe is an older command-line utility that shipped with
.NET 1.1 and is still available with the .NET SDK. One can check the availability of a shared assembly in GAC by using the command: gacutil.exe /l One can register a shared assembly in the GAC by using the command: gacutil.exe /i Or by copying an assembly file into the following location: %windir%\assembly\ Note that for .NET 4.0 the GAC location is now: %windir%\Microsoft.NET\assembly\ Other options for this utility will be briefly described if you use the /? flag, i.e.: gacutil.exe /?
Assembly Cache Viewer The newer interface, the Assembly Cache Viewer, is integrated into
Windows Explorer. Browsing %windir%\assembly\ (for example, C:\WINDOWS\assembly) or %WINDIR%\Microsoft.NET\assembly, displays the assemblies contained in the cache along with their versions, culture, public key token, and processor architecture. Assemblies are installed by dragging and dropping and uninstalled by selecting and pressing the
delete key or using the
context menu. With the launch of the .NET Framework 4, the Assembly Cache Viewer shell extension is obsolete. == Example of use==