Wednesday, December 17, 2008

Install Assembly in GAC

Hi,
Here is the steps to install Your assembly in GAC

1)Open Visual studio command tool and map the path of the dll that you want to install in GAC

2)Then Create the stongName Key by using sn -k key.snk .It generates the key for the assembly
For ex:
D:/MyProject/bin/debug sn-k Key.snk. key will be generated in the specified path.

3) Now Open Your Project of the corresponding dll , Right Click on the
project -> properties->Application->Assembly Information-> check the option of Make Assembly COM Visible.

4)Next Step
Project->Properties->Signing->select sign the assembly and browse the key from the project. Save the option.

5)Rebulid Your Project.

6)Now Register your assembly add
regasm dllname, to install the assembly in global assembly
Assembly will be registered

7)To install assembly in the
gacutil -i dllname.Now Your dll will be installed in Gac . Check in windows/assembly

No comments: