---
title: "How do you install assembly to the Global Assembly Cache?"  
description: "How do you install assembly to the Global Assembly Cache?"  
author: "Varun Agrawal"  
published: 2011-03-18  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/487/how-do-you-install-assembly-to-the-global-assembly-cache  
category: "assembly"  
tags: ["assembly"]  
reading_time: 1 minute  

---

# How do you install assembly to the Global Assembly Cache?

Followings are the steps to install assembly to the GAC. \

- Sign assembly with a strong name using strong name utility, sn.exe.
- Open the AssemblyInfo file for your project.
- Use the AssemblyKeyFileAttribute to specify the path to the key file for your project.
- Build your assembly. Install the assembly to GAC by using gacutil utility e.g. gacutil -i abc.dll

## Answers

### Answer by Varun Agrawal

Followings are the steps to install assembly to the GAC. \

- Sign assembly with a strong name using strong name utility, sn.exe.
- Open the AssemblyInfo file for your project.
- Use the AssemblyKeyFileAttribute to specify the path to the key file for your project.
- Build your assembly. Install the assembly to GAC by using gacutil utility e.g. gacutil -i abc.dll


---

Original Source: https://www.mindstick.com/interview/487/how-do-you-install-assembly-to-the-global-assembly-cache

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
