Friday 19 August 2011

How to Retrieve a DLL from the GAC


Step 1. Opend Command prompt
Step 2. Browse for GAC/GAC_32/GAC_MSIL Folder
    (C:\Window\assembly\GAC)
    <image>
Step 3. Each assembly have it own folder. So if you need to access the assembly
            Like eg: CrystalDecisions.Enterprise.Franework
    C:\Window\assembly\GAC>cd CrystalDecisions.Enterprise.Franework
step 4. C:\Window\assembly\GAC\CrystalDecisions.Enterprise.Franework>
    Once in the folder, you should see a subfolder for each version of the assembly in the GAC.
    C:\Window\assembly\GAC\CrystalDecisions.Enterprise.Franework>dir
    you can see sub folders in it like This:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\10.5.3700.0__692fb
ea5521e1304>dir
 Volume in drive C is TECLAB-4
 Volume Serial Number is 3844-D579

 Directory of C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\10.5
.3700.0__692fbea5521e1304

04/11/2009  02:47 AM    <DIR>          .
04/11/2009  02:47 AM    <DIR>          ..
04/11/2009  02:47 AM            45,056 CrystalDecisions.Enterprise.Framework.dll

04/11/2009  02:47 AM               229 __AssemblyInfo__.ini
               2 File(s)         45,285 bytes
               2 Dir(s)   5,783,031,808 bytes free
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
step 5. Now copy this dll to your prefred location using COPY or XCOPY Command.

 C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\10.5.3700.0__692fbea5521e1304>xcopy * \jeevandll
 C:CrystalDecisions.Enterprise.Framework.dll
 C:__AssemblyInfo__.ini
 2 File(s) copied

No comments:

Post a Comment