Daniel Cazzulino's Blog : How to get out of the GAC all the registered assemblies

Subscriptions

News

Source code published in this blog is public domain unless otherwise specified.

 

kzu in LinkedIn

  Microsoft MVP Profile

 Contact

Post Categories

How to get out of the GAC all the registered assemblies

You know how annoying the GAC shell extension makes it to access the actual assemblies:

image

Utterly useless.

Of course, you surely know that you can get to those elusive assemblies via the command-line and side-step the shell extension:

image

But, now you need to go to each assembly folder, then its version, and so the actual assemblies are scattered through various locations.

This one-liner powershell command will get them all out in a folder of your choosing for easy Reflector-ing (create the target before running it):

Get-ChildItem C:\Windows\assembly\GAC_MSIL -filter *.dll -recurse | Copy-Item -destination C:\GAC

posted on Friday, January 08, 2010 7:06 AM by kzu

# How to get out of the GAC all the registered assemblies @ Friday, January 08, 2010 7:26 AM

You know how annoying the GAC shell extension makes it to access the actual assemblies: Utterly useless

Anonymous

# re: How to get out of the GAC all the registered assemblies @ Friday, January 08, 2010 10:20 AM

Can't you just xcopy them when you are in command line?

AndrewSeven

# re: How to get out of the GAC all the registered assemblies @ Monday, January 11, 2010 1:23 PM

To bypass the shell extension type the following (on your start menu)

%windir%\assembly\GAC_MSIL

Then create a link on your desktop.

/J

Jonas