Global Assembly Cache - .NET Framework (2024)

Table of Contents
In this article See also
  • Article

Note

This article is specific to .NET Framework. It doesn't apply to newer implementations of .NET, including .NET 6 and later versions.

Each computer where the Common Language Runtime is installed has a machine-wide code cache called the Global Assembly Cache. The Global Assembly Cache stores assemblies specifically designated to be shared by several applications on the computer.

You should share assemblies by installing them into the Global Assembly Cache only when you need to. As a general guideline, keep assembly dependencies private, and locate assemblies in the application directory unless sharing an assembly is explicitly required. In addition, it is not necessary to install assemblies into the Global Assembly Cache to make them accessible to COM interop or unmanaged code.

Note

There are scenarios where you explicitly do not want to install an assembly into the Global Assembly Cache. If you place one of the assemblies that make up an application in the Global Assembly Cache, you can no longer replicate or install the application by using the xcopy command to copy the application directory. You must move the assembly in the Global Assembly Cache as well.

There are two ways to deploy an assembly into the Global Assembly Cache:

  • Use an installer designed to work with the Global Assembly Cache. This is the preferred option for installing assemblies into the Global Assembly Cache.

  • Use a developer tool called the Global Assembly Cache tool (Gacutil.exe), provided by the Windows SDK.

    Note

    In deployment scenarios, use Windows Installer to install assemblies into the Global Assembly Cache. Use the Global Assembly Cache tool only in development scenarios, because it does not provide assembly reference counting and other features provided when using the Windows Installer.

Starting with the .NET Framework 4, the default location for the Global Assembly Cache is %windir%\Microsoft.NET\assembly. In earlier versions of the .NET Framework, the default location is %windir%\assembly.

Administrators often protect the systemroot directory using an access control list (ACL) to control write and execute access. Because the Global Assembly Cache is installed in a subdirectory of the systemroot directory, it inherits that directory's ACL. It is recommended that only users with Administrator privileges be allowed to delete files from the Global Assembly Cache.

Assemblies deployed in the Global Assembly Cache must have a strong name. When an assembly is added to the Global Assembly Cache, integrity checks are performed on all files that make up the assembly. The cache performs these integrity checks to ensure that an assembly has not been tampered with, for example, when a file has changed but the manifest does not reflect the change.

See also

Global Assembly Cache - .NET Framework (2024)
Top Articles
Top Tips to Pass your Verification
How ISO 20022 Will Take Ripple to the Next Level
Victor Spizzirri Linkedin
Uihc Family Medicine
Obituary (Binghamton Press & Sun-Bulletin): Tully Area Historical Society
Alpha Kenny Buddy - Songs, Events and Music Stats | Viberate.com
Self-guided tour (for students) – Teaching & Learning Support
Barstool Sports Gif
Danielle Longet
Oriellys St James Mn
Cincinnati Bearcats roll to 66-13 win over Eastern Kentucky in season-opener
Bros Movie Wiki
Fredericksburg Free Lance Star Obituaries
Craigslist Apartments In Philly
2021 Lexus IS for sale - Richardson, TX - craigslist
Unity - Manual: Scene view navigation
Amazing deals for DKoldies on Goodshop!
Evil Dead Rise Showtimes Near Regal Sawgrass & Imax
Yisd Home Access Center
Highmark Wholecare Otc Store
Rs3 Ushabti
Jcp Meevo Com
Workshops - Canadian Dam Association (CDA-ACB)
Page 2383 – Christianity Today
Best Middle Schools In Queens Ny
Summoners War Update Notes
Elijah Streams Videos
Bridgestone Tire Dealer Near Me
Everything You Need to Know About Ñ in Spanish | FluentU Spanish Blog
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Jt Closeout World Rushville Indiana
Have you seen this child? Caroline Victoria Teague
Fbsm Greenville Sc
Craigslist Dallastx
Sun Haven Pufferfish
Skip The Games Ventura
Gwu Apps
Tmka-19829
Keeper Of The Lost Cities Series - Shannon Messenger
Bitchinbubba Face
Emerge Ortho Kronos
Puretalkusa.com/Amac
Electronic Music Duo Daft Punk Announces Split After Nearly 3 Decades
Mychart Mercy Health Paducah
Levi Ackerman Tattoo Ideas
Powerboat P1 Unveils 2024 P1 Offshore And Class 1 Race Calendar
Sound Of Freedom Showtimes Near Amc Mountainside 10
Craigslist Mendocino
Image Mate Orange County
Worlds Hardest Game Tyrone
Bloons Tower Defense 1 Unblocked
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 5489

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.