Introduction

We 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


@1.gif

Figure 1

  • Add this code to the editor

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!!!");

}

}
}

@2.gif

Figure 2

@3.gif

Figure 3

@4.gif

Figure 4