Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 739
Grzegorz Z Avatar asked Jan 14 '23 15:01

Grzegorz Z


2 Answers

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.

like image 112
Joe Alfano Avatar answered Jan 17 '23 04:01

Joe Alfano


You can just open the assembly folder (C:\Windows\Assembly), drag and drop the assembly you want...

like image 23
Leonardo Avatar answered Jan 17 '23 05:01

Leonardo