Is there a way to use PowerShell to view the contents of the GAC?
Use the global assembly cache tool (gacutil.exe) to view the contents of the global assembly cache (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.
Starting with the . NET Framework 4, the default location for the Global Assembly Cache is %windir%\Microsoft.NET\assembly.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With