New to Telerik UI for WinForms? Download free 30-day trial

Adding a control to the GAC (Global Assembly Cache) for WinForms

Product Version Product Author Last modified
Q2 2008 RadControls for WinForms Nikolay Diyanov Apr 03, 2008

HOW TO
Add a control to the GAC (Global Assembly Cache)

SOLUTION To install a control to the GAC, you need to run the .NET command prompt (Start >> Programs >> Microsoft VS.NET >> VS.NET Tools >> VS.NET prompt) and start the gacutil.exe tool with -i parameter (install) and the full path to the control's DLL.

For example:

gacutil.exe -i "C:\Program Files\Telerik\RadControls for WinForms Q3 2007 SP1\bin\TelerikCommon.dll"

gacutil.exe -i "C:\Program Files\Telerik\RadControls for WinForms Q3 2007 SP1\bin\Telerik.WinControls.dll"

You may also directly copy the dll files to the C:\WINDOWS\assembly,by drag and drop operation - this is equivalent to running the gacutil.exe utility.

To get the information that goes into the assembly attribute (Version, Culture, PublicKeyToken), you can run the gacutil */l* command which will return a list of all the assemblies in the GAC. You can also see the information associated with a particular assembly using the -l parameter.

For example:

gacutil -l TelerikCommon
The command above will return:

TelerikCommon, Version=5.0.3.0, Culture=neutral, PublicKeyToken=5bb2a467cbec79, processorArchitecture=MSIL

In this article
Not finding the help you need? Improve this article