Home All Groups Group Topic Archive Search About

How to copy assembly out of GAC?

Author
16 Nov 2004 5:43 PM
Donal McWeeney
Hi,

How do I copy an assembly out of the GAC.
Cant find it anywhere else on the box.

Thanks

    Donal

Author
16 Nov 2004 6:10 PM
Richard Blewett [DevelopMentor]
use the command line to copy the file from (for an assembly called util, version 1.0.0.0, culture=neutral, publickeytoken=aabccddeeff11223344)

c:\<windir>\assemblies\gac\util\1.0.0.0__aabbccddeeff11223344\util.dll

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

   Hi,

How do I copy an assembly out of the GAC.
Cant find it anywhere else on the box.

Thanks

Donal
Fix windows and pc errors, click for free system scan

Author
17 Nov 2004 4:17 AM
Steven Cheng[MSFT]
Hi Donal,

I think Richard's suggestion is ok. The {sysdir}:\windows\assembly  GAC
folder is alerted via windows shell when we view it in  windows explorer. 
You can navigate into it via commandline and you'll find each assembly will
have serveral sub folders ( for different versions). 

In addition, you can also copy the content line of the certain assembly
when you view the
sysdir}:\windows\assembly folder  in explorer. The line copy out is
something like:

System.Data  Neutral  1.0.5000.0  b77a5c561934e089 
file:///F:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/System.Data.dll

And the path is just the actual path of that assembly.

HOpe also helps. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Author
17 Nov 2004 10:28 AM
Donal McWeeney
Thanks for the info guys...

Thanks

    Donal
Author
18 Nov 2004 12:59 AM
Steven Cheng[MSFT]
You're welcome, Donal.

Have a good day!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Bookmark and Share