Search code examples
.netajaxcontroltoolkitgac

How to add a .net assembly to the global assembly cache (GAC)


How to add a libraries to the GAC? Could I lists assembles from GAC in the Visual Studio. I only want to add one file to GAC Library DLL It's AjaxControlToolkit.


Solution

  • You can add an assembly to the GAC using Gacutil.exe. see here. The syntax is:

    gacutil [options] [assemblyName | assemblyPath | assemblyListFile]
    

    You can also use GACUtil.exe to view the contents of the GAC via the command:

    gacutil –l
    

    In versions of Visual Studio prior to 2010, it was possible to use the Assembly Cache Viewer and simply navigate to < System Drive >:\< Windows Folder >\assembly, in Windows Explorer to view the list of assemblies in the GAC. However, the Assembly Cache Viewer has been removed beginning in .net 4.