How to view the Folder and Files in GAC?

Rohit Vipin Mathews picture Rohit Vipin Mathews · Feb 29, 2012 · Viewed 255.7k times · Source

I want to view the folders and sub folders in GAC. Also want to know about adding and removing from GAC.

To install we write this lines in command prompt by opening Visual Studio command prompt:-

gacutil /i [assembly path]

But to uninstall we need only:-

gacutil /u [assembly name]

Why?

Answer

sll picture sll · Feb 29, 2012

Install:

gacutil -i "path_to_the_assembly"

View:

Open in Windows Explorer folder

  • .NET 1.0 - NET 3.5: c:\windows\assembly (%systemroot%\assembly)
  • .NET 4.x: %windir%\Microsoft.NET\assembly

OR gacutil –l

When you are going to install an assembly you have to specify where gacutil can find it, so you have to provide a full path as well. But when an assembly already is in GAC - gacutil know a folder path so it just need an assembly name.

MSDN: