How to install an assembly into the Global Assembly Cache in Visual C#

Posted by Er.deepakdalal under C# on 4/29/2010 | Views : 4571 | Status : [Member] | Replies : 2
Hi Friends

can any body tell How i install an assembly into the Global Assembly Cache




Responses

Posted by: Vuyiswamb on: 4/29/2010 [Member] [MVP] [Administrator] NotApplicable
Posted by: Naveenmanam on: 4/30/2010 [Member] Starter

Up
0
Down
There are four ways to install an assembly into the global assembly cache:

* Using the Global Assembly Cache tool (Gacutil.exe).

You can use Gacutil.exe to add strong-named assemblies to the global assembly cache and to view the contents of the global assembly cache.
NoteNote

Gacutil.exe is only for development purposes and should not be used to install production assemblies into the global assembly cache.
* Using Microsoft Windows Installer 2.0.

This is the recommended and most common way to add assemblies to the global assembly cache. The installer provides reference counting of assemblies in the global assembly cache, plus other benefits.
* Using a Windows shell extension provided by the Windows Software Development Kit (SDK) called the Assembly Cache Viewer (Shfusion.dll).

The shell extension allows you to drag assemblies into the global assembly cache.
* Using the Mscorcfg.msc (.NET Framework Configuration Tool).

The Mscorcfg.msc (.NET Framework Configuration Tool) allows you to view the global assembly cache and add new assemblies to the cache.

*

At the command prompt, type the following command:

gacutil -I <assembly name>

In this command, assembly name is the name of the assembly to install in the global assembly cache.

The following example installs an assembly with the file name hello.dll into the global assembly cache.


gacutil -i hello.dll



NaveenKumar

Er.deepakdalal, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response