Install assembly in the GAC
-
I am creating a setup project and I would like to install some assembly files into the Global Assembly Cache (GAC). How to indicate that in the setup project?
-
I am creating a setup project and I would like to install some assembly files into the Global Assembly Cache (GAC). How to indicate that in the setup project?
It depends on the setup program. But if it supports custom actions, then you can do
"gacutilpath\gacutil.exe" /i "assemblypath\assemblyname.dll"
where gacutil path is the path to gacutil.exe and assemblypath is the path to the assembly.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi -
It depends on the setup program. But if it supports custom actions, then you can do
"gacutilpath\gacutil.exe" /i "assemblypath\assemblyname.dll"
where gacutil path is the path to gacutil.exe and assemblypath is the path to the assembly.
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma GandhiI have finally discovered that the Deployment project in Visual Studio .NET offers a GAC folder. I have just, when creating my deployment project, to place my assemblies in this folder. And now, I have another question: I would like that the setup program make the assemblies appear in the Visual Studio .NET "Customize Toolbox" dialog box. How to do that?