6

I know that Microsoft states to run

gacutil -l

from the VS command prompt to get a list.

However I am dealing with this. enter image description here

So when I run the list the display contents are all over the window and I have a total of 1649 items in the gac.
In this case I do now know what Oracal dll I need to remove. So is there an easier way to view/search what is in the GAC?

John Doe
  • 3,053
  • 17
  • 48
  • 75

2 Answers2

11

Searching in c:\windows\assembly is not going to help as from .net 4.0 on wards there is a different location (%windir%\Microsoft.NET\assembly) for GAC.

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

gacutil is the way to go as it searches in both the locations i.e. %systemroot%\assembly and %windir%\Microsoft.NET\assembly\

For your issue you can try

gacutil -l Oracle.DataAccess (Oracle.DataAccess.dll is what I remember gets installed for Oracle Data Provider for .NET)

However above command doesn't support wild card so the assembly name should exactly match.

A hack would be to pipe the result to find command and then apply filters

gacutil.exe -l | find /I "oracle" (make sure VS command prompt is opened in admin mode)

Community
  • 1
  • 1
Ravi A.
  • 2,163
  • 2
  • 18
  • 26
  • I'm not great with PowerShell, but getting the full GAC list and filtering within the same query sounds like something it would be good at. – JamesFaix Jun 30 '16 at 13:20
  • Good point. In fact we can pipe result to MS-Dos find command and apply filter there, edited my answer. – Ravi A. Jun 30 '16 at 13:57
6

You can use Windows Explorer to browse the GAC. Open it up and navigate to %systemroot%\assembly:

enter image description here

You can see various details of each assembly, and pressing Del will prompt you if you want to uninstall the assembly.

James Thorpe
  • 31,411
  • 5
  • 72
  • 93