Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use PowerShell to view contents of the Global Assembly Cache (GAC)

Tags:

powershell

gac

Is there a way to use PowerShell to view the contents of the GAC?

like image 870
GuyBehindtheGuy Avatar asked May 19 '09 13:05

GuyBehindtheGuy


People also ask

Which command is used or view contents of GAC?

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

How do I get a list of assemblies in GAC?

You can actually navigate to the GAC via explorer or the command line and view the contents of the folder. It's location is C:\Windows\assembly. When viewing via explorer the actual files are hidden and abstracted away, if you need to copy or extract specific versions of the dlls the command line is the way to go.

Where is Global Assembly Cache GAC?

Starting with the . NET Framework 4, the default location for the Global Assembly Cache is %windir%\Microsoft.NET\assembly.


1 Answers

Another option is that the PowerShell Community Extensions installs a GAC provider, so you can do this:

dir gac:

If you are on PowerShell V2, be sure to grab the 1.2 Beta.

like image 137
Keith Hill Avatar answered Sep 18 '22 12:09

Keith Hill