IntroductionWe have seen in a previous article how one can install a given assembly using the .Net Framework management console the Mscorcfg.msc. Now, we proceed to achieve the same goal but using another tool witch is the Global assembly cache tool cagutil.exe provided by the .Net framework.To do that, follow those steps:First of all, let us develop a simple assembly. To do that, follow those steps
Figure 1
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace myAssembly
{
public class Class1
public Class1()
MessageBox.Show("You are using myAssembly!!!");
}
}}
Figure 2
Figure 3
Figure 4
Installing an Assembly: Part II Using the Global Cache
Reflection - Invoking a Member Method
Thank for the remark
The last lie says " * Tape cagutil -I myAssembly and the press enter and the windows shell will tell you that the assembly is installed in the assembly cache." It is gacutil -I. gacutil is typically found in "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin" if you have installed u r visual studio in C drive. So in cmd go to the specific folder and type gacutil -I"C:\[PathToBinDirectoryInVSProject]\gac.dll"