Chirag Satasiya
What is GAC and where it is located?
By Chirag Satasiya in .NET on Nov 19 2016
  • Dibyendu Saha
    Jul, 2019 4

    GAC stands for Global Assembly Cache. GAC is the place where shared assemblies get stored in a system.In order to install an assembly to GAC one needs to use the command : gacutil.exe i Assembly name . However before doing that we need to make sure that the assembly is a strong named assembly.To sign an assembly with a strong name, you must have a public/private key pair. This public and private cryptographic key pair is used during compilation to create a strong-named assembly.We need to use: sn –k in the command prompt and then provide the public/private key pair file to the AssemblyInfo file of the dll.
    For dot net version 2.0 & 3.5 the location for GAC is : C:\Windows\assembly
    For dotnet version 4.0 and above the location for GAC is :C:\Windows\Microsoft.NET\assembly

    • 1
  • Eira Jeremy
    Jan, 2024 25

    GAC stands for General Assembly of the Church of God. It is located in Cleveland, Tennessee, United States at my location

    • 0
  • Rushikesh shahapurkar
    May, 2017 11

    It is located in %windir%\assembly (for example, C:\WINDOWS\assembly) and it is a shared repository of libraries.

    • 0
  • Chirag Satasiya
    Nov, 2016 19

    GAC stands for Global Assembly Cache. The global assembly cache stores assemblies specifically designed to be shared by several applications on the computer. Location of GAC depends upon the version of .NET framework you are using. C:\Windows\Assembly for.NET framework 2.0 or 3.5 i.e. before 4.0 C:\WINDOWS\Microsoft.NET\assembly - For .NET framework 4.0 & above

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS