Adding an Assembly to the Global Assembly Cache
- Updated2025-04-10
- 1 minute(s) read
Adding an Assembly to the Global Assembly Cache
Register .NET assemblies in the Global Assembly Cache (GAC) for your programs.
- Select a package from the Packages pane.
- Navigate to Custom executes in the Properties pane and click the […] button to open the Manage Custom Executes dialog box.
- In the Root drop-down menu, select [Program Files (32-bit)].
-
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. -
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. - Click OK.
- Select to build the package.