---
title: "Can you have two files with the same file name in GAC?"  
description: "Can you have two files with the same file name in GAC?"  
author: "Varun Agrawal"  
published: 2011-03-18  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/498/can-you-have-two-files-with-the-same-file-name-in-gac  
category: "assembly"  
tags: ["assembly"]  
reading_time: 1 minute  

---

# Can you have two files with the same file name in GAC?

Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so it’s possible for MyApp.dll and MyApp.dll to co-exist in GAC if the first one is version 1.0.0.0 and the second one is 1.1.0.0.

## Answers

### Answer by Varun Agrawal

Yes, remember that GAC is a very special folder, and while normally you would not be able to place two files with the same name into a Windows folder, GAC differentiates by version number as well, so it’s possible for MyApp.dll and MyApp.dll to co-exist in GAC if the first one is version 1.0.0.0 and the second one is 1.1.0.0.


---

Original Source: https://www.mindstick.com/interview/498/can-you-have-two-files-with-the-same-file-name-in-gac

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
