Using Global Assembly Cache (GAC) Deployment (2024)

Installing application components into the Global Assembly Cache (GAC) can be useful if you are installing components that will be used by multiple applications on the same machine, or if you need to run multiple versions of the same assembly on a single computer.

By default, when you install the Ultimate UI for Windows Forms toolset, the control assemblies are installed into the GAC. If you would like to deploy the Infragistics components that are part of your application into the GAC of the client computer there are two primary methods.

Using Gacutil.exe to add components to the GAC

The Gacutil.exe tool is a command line utility installed as part of the base .NET framework which can be used to add and remove application components to/from the GAC. The Gacutil.exe tool is located in the .NET Framework installation directory. The default location for this is C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools.

To use the Gacutil.exe tool:

  1. Open a Visual Studio command prompt

( Start > Programs > Visual Studio 2017 > Visual Studio .NET Tools > Developer Command Prompt for VS 2017 )

  1. Enter the Gacutil.exe command. The following line demonstrates adding the Infragistics WinChart component to the GAC from an application’s folder called MyApplication.

gacutil -i C:\Projects\MyApplication\Infragistics.Win.UltraWinChart.v24.1.dll

Gacutil.exe command line include a number of commands that allow you to specify the operation you want the tool to perform. The list below explain the available commands:

  • /i - Installs an assembly to the GAC

  • /il - Installs one or more assemblies to the GAC

  • /u - Uninstalls an assembly from the GAC

  • /ul - Uninstalls one or more assemblies from the GAC

  • /ungen - Uninstalls a native images installed via the NGEN utility

  • /l - List the GAC filtered by <assembly_name>

  • /lr - List the GAC with all traced references

  • /cdl - Deletes the contents of the download cache

  • /ldl - Lists the contents of the download cache

Gacutil.exe also allows for several options to be specified on the command line:

  • /r - Specifies a traced reference to install or uninstall

  • /f - Forces reinstall of an assembly

  • /nologo - Suppresses the display of the logo banner

  • /silent - Suppressed the display f all output

Using the Windows Explorer GAC extension to add components to the GAC

Because the GAC is a complex storage location for .NET assemblies, it is not easy to view the contents of it like you would be able to view the contents of a standard folder in Windows. Thankfully the .NET Framework SDK includes a Windows Explorer extension (SHFusion.dll) that can be used to access the GAC in much the same fashion as a standard windows folder. Using this extension you can view, add or remove files from the GAC using standard Explorer menus or drag and drop operations.

If you have the .NET Framework SDK installed, you can access the GAC through windows explorer by opening C:\Windows\Assembly . The image below shows you how the GAC is displayed in Explorer using the extension.

Using Global Assembly Cache (GAC) Deployment (1)

Using this view, you can add assemblies to the GAC by simply dragging and dropping them into the ASSEMBLY folder. You can also delete files from the GAC by selecting the Delete option from the File menu, or the context menu. Also, as you can see by the image above, using the GAC you can install multiple versions of the same assembly onto the same machine. Each application that references the assembly will select the appropriate version based on internal meta-data.

Additional Global Assembly Cache Information

For more information on the use of the GAC and installing applications into the GAC please see these resources:

Using Global Assembly Cache (GAC) Deployment (2024)
Top Articles
What are the Benefits of Investing in Equity Shares?
Warren Buffet’s Sleeper Strategy: Trading Options for Income - VantagePoint
Omega Pizza-Roast Beef -Seafood Middleton Menu
Joe Taylor, K1JT – “WSJT-X FT8 and Beyond”
Places 5 Hours Away From Me
Craftsman M230 Lawn Mower Oil Change
Frank Lloyd Wright, born 150 years ago, still fascinates
Chase Bank Operating Hours
Botanist Workbench Rs3
10 Popular Hair Growth Products Made With Dermatologist-Approved Ingredients to Shop at Amazon
Roblox Developers’ Journal
Graveguard Set Bloodborne
ATV Blue Book - Values & Used Prices
How Many Slices Are In A Large Pizza? | Number Of Pizzas To Order For Your Next Party
Guidewheel lands $9M Series A-1 for SaaS that boosts manufacturing and trims carbon emissions | TechCrunch
Telegram Scat
Energy Healing Conference Utah
Aes Salt Lake City Showdown
Certain Red Dye Nyt Crossword
Vivaciousveteran
California Online Traffic School
Jayme's Upscale Resale Abilene Photos
Jamielizzz Leaked
Rainfall Map Oklahoma
Amazing Lash Bay Colony
Mercedes W204 Belt Diagram
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
King Soopers Cashiers Check
Eero Optimize For Conferencing And Gaming
Miss America Voy Board
Best Workers Compensation Lawyer Hill & Moin
Quake Awakening Fragments
Buhsd Studentvue
Austin Automotive Buda
Empires And Puzzles Dark Chest
How to play Yahoo Fantasy Football | Yahoo Help - SLN24152
Gravel Racing
Citibank Branch Locations In North Carolina
What to Do at The 2024 Charlotte International Arts Festival | Queen City Nerve
Satucket Lectionary
Truck Works Dothan Alabama
Nearest Wintrust Bank
Stitch And Angel Tattoo Black And White
Meet Robert Oppenheimer, the destroyer of worlds
Espn Top 300 Non Ppr
Okta Login Nordstrom
1990 cold case: Who killed Cheryl Henry and Andy Atkinson on Lovers Lane in west Houston?
Runescape Death Guard
Free Carnival-themed Google Slides & PowerPoint templates
How To Connect To Rutgers Wifi
Latest Posts
Article information

Author: Trent Wehner

Last Updated:

Views: 6092

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Trent Wehner

Birthday: 1993-03-14

Address: 872 Kevin Squares, New Codyville, AK 01785-0416

Phone: +18698800304764

Job: Senior Farming Developer

Hobby: Paintball, Calligraphy, Hunting, Flying disc, Lapidary, Rafting, Inline skating

Introduction: My name is Trent Wehner, I am a talented, brainy, zealous, light, funny, gleaming, attractive person who loves writing and wants to share my knowledge and understanding with you.