---
title: "What is Global Assembly Cache (GAC) in .net framework"  
description: "What is Global Assembly Cache (GAC) in .net framework"  
author: "Anonymous User"  
published: 2019-12-12  
updated: 2019-12-12  
canonical: https://www.mindstick.com/forum/155582/what-is-global-assembly-cache-gac-in-dot-net-framework  
category: ".net"  
tags: [".net", ".net assembly"]  
reading_time: 2 minutes  

---

# What is Global Assembly Cache (GAC) in .net framework

[Please explain](https://www.mindstick.com/forum/344/hi-rohith-i-am-new-for-mvc-please-explain-how-to-set-implicitly-isauthenticated-true) What is Global Assembly Cache (GAC) in .net framework.

## Replies

### Reply by Nishi Tiwari

**When the assembly is required to be accessed or shared by multiple applications than we need to make assembly with a strong name and keep it in GAC or assembly folder by installing it with GACUtil command**. GAC is folder in a windows directory to store .Net assemblies that are designed to be shared by all application executed on a system and this can be possible only by registering the assemblies into a [**global assembly cache (GAC)**](https://www.mindstick.com/forum/155581/what-is-assembly-in-dot-net-framework). It is already installed with .Net runtime and located in ‘windows/windowsNT’ directory.

**Global Assembly Cache Tool (Gacutil.exe**) allows to view and manipulate the content of Global Assembly Cache. It is located in %windir%\assembly, for example **(C:\windows\assembly).**

Assemblies can be installed within Global Assembly Cache in two ways:-

- Windows installer
- Global Assembly cache tool

#### Windows installer

Windows installer, the Windows installation engine, is the first way to add assemblies to the global assembly cache. Windows Installer provides reference counting of assemblies in the global assembly cache and other benefits.

#### Global Assembly Cache Tool

We can use .Net Global Assembly Cache utility (gacutil.exe) to add the assemblies to Global Assembly Cache (GAC) and to view the content of assemblies.

Syntax for installing assembly in GAC by gacutil.exe is as follows:-

#### cmd

## gacutil -i <assembly name>

In this command, <assembly name> is the [**name of the assembly**](https://www.mindstick.com/forum/155585/what-is-garbage-collector) to install in GAC.

The following example installs an assembly with the file name hello.dll into the global assembly cache.

#### cmd

## gacutil -i hello.dll

## \


---

Original Source: https://www.mindstick.com/forum/155582/what-is-global-assembly-cache-gac-in-dot-net-framework

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
