How to Add a Assembly in GAC

There are three ways to add an assembly to the GAC:

(1)Install them with the Windows Installer 2.0

(2)Use the Gacutil.exe tool

(3)Drag and drop the assemblies to the cache with Windows Explorer

- Create a strong name using sn.exe tool

eg: sn -k keyPair.snk

- with in AssemblyInfo.cs add the generated file name

eg: [assembly: AssemblyKeyFile("dotnet.snk")]

- recompile project, then install it to GAC by either

d

rag & drop it to assembly folder (C:\WINDOWS\assembly OR C:\WINNT\assembly) (shfusion.dll tool)

or

gacutil -i abc.dll