Monday, August 5, 2013

Exporting DLL from GAC via Command Prompt

To copy or export out a DLL in GAC;
  1. Launch a Command Prompt
  2. Browse to GAC_MSIL folder;
    • cd c:\windows\assembly\GAC_MSIL
  3. Each DLL in GAC will have its own folder, thus to get to the DLL, browse to the DLL folder;
    • cd <the name of the DLL>
  4. Different version of the DLL will be stored in different sub-folders. To check the available sub-folder enter "dir" in the Command Prompt
  5. Once identify the sub-folder, navigate into the sub-folder
    • cd <sub-folder name>
  6. Now you are able to export/copy out the DLL in this folder. To do so, use the following code;
    • copy *.dll C:\<preferred folder>\
  7. Done
Exporting DLL from GAC via Command Prompt

No comments:

Post a Comment