Table Of Contents

Adding an Assembly to the GAC Using gacutil.exe

Last Modified: March 3, 2020

Use this procedure to register .NET assemblies in the Global Assembly Cache (GAC) on your Windows Operating System for use by your programs.
  1. In the Root property, select [Program Files (32-bit)].
  2. Set the Executable Path to the partial path of the gacutil tool (this path may be different depending on your versions of the Windows SDK and .NET Framework).
    Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\gacutil.exe
  3. In the Arguments property, provide the arguments to import your configuration:
    /i “<file.dll>”

    The /i flag ensures you install the assembly to the GAC.

    Where <file.dll> is replaced by the path and name of your assembly that you wish to add.


    To uninstall an assembly from the GAC use the /u flag.

  4. Click OK.
  5. Build all packages by selecting Build» Build All Packages .
  6. When your package installer is run after the installation is executed, the appropriate assembly is added to the GAC.

Recently Viewed Topics