Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the .NET Framework Global Assembly Cache?

Tags:

.net-4.0

gac

I installed the VS2010 and .NET 4.0, then I compiled an assembly and ran the gacutil using the exe available on

%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools 

The output of the executable said the assembly was sucessfully installed on Global Assembly Cache. However, when I go to %WINDIR%\assembly folder I cannot find the assembly I installed using the .NET Framework 4.0 gacutil.

I've seen some posts saying the .NET Framework 4.0 has a separated GAC, but what I haven't found was where it is located.

May someone to help me to check where can I see the Global Assembly Cache of .NET Framework, as it used to work on previous version (%WINDIR%\assembly)?

like image 949
CARLOS LOTH Avatar asked May 12 '10 22:05

CARLOS LOTH


People also ask

Where is global assembly cache located?

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

How do I clear GAC Global Assembly Cache?

There are two ways to remove an assembly from the global assembly cache (GAC): By using the Global Assembly Cache tool (Gacutil.exe). You can use this option to uninstall assemblies that you've placed in the GAC during development and testing. By using Windows Installer.

How do I check my global assembly cache?

Use the global assembly cache tool (gacutil.exe) to view the contents of the global assembly cache (GAC).


1 Answers

Yes, there are two distinct GACs as from .NET 4.0

See here: .NET 4.0 has a new GAC, why?

As stated below, the new physical location is %windir%\Microsoft.NET\assembly\ (you can interogate it using the dir command at a command prompt if you're interested).

It's worth noting that applications running up to the 2.0 CLR will not even be able to see assemblies in the new GAC.

like image 129
David Neale Avatar answered Sep 22 '22 22:09

David Neale