Adding an Assembly to the Global Assembly Cache

Register .NET assemblies in the Global Assembly Cache (GAC) for your programs.

Before you begin, ensure the gacutil.exe tool is installed on the target computer. You must install this executable tool on the target before installing the package containing the custom execute. Install the tool using Windows SDK or Visual Studio. You can also configure the package to install the tool.
  1. Select a package from the Packages pane.
  2. Navigate to Custom executes in the Properties pane and click the […] button to open the Manage Custom Executes dialog box.
  3. In the Root drop-down menu, select [Program Files (32-bit)].
  4. Set the executable path to the tool:
    Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\gacutil.exe
    Note The Executable Path can vary depending on the method you used to install the tool.
  5. In the Arguments field, enter the following argument to import your configuration:
    /i “<file.dll>”

    The /i flag ensures you install the assembly to the GAC. Replace <file.dll>> with the path and name of the assembly you are adding. To uninstall an assembly from the GAC, use the /u flag.

    Note For more information on how to interact with your assemblies in the GAC, refer to Microsoft's documentation.
  6. Click OK.
  7. Select Build » Build All Packages to build the package.
Add the specified assembly to the GAC by running the package installer after you complete these installation steps.