Friday, March 27, 2009

Copy Assembly from GAC,



Getting a copy of a DLL that's only in the GAC




Go to Command window




Find the Assembly directory


C:\Windows\Assembly




C:\Windows\Assembly\dir




This will display the different GAC folders




You need to find where exactly your dll is stored.




It would be GAC_




where can have MSIL, 64, 32. you can see the processor architecure from from the windows exproer view of the Assembly.






Suppose your dll processor Architecure is MSIL then your assembly would be there in GAC_MSIL




Then Go to


C:\Windows\Assembly\GAC_MSIL\__
Remember __ (Are two underscore)


type command to copy the dll to the directory where you want that.



EX: dll name : mydll


Processor Architecure: MSIL


version: 1.0.0.0


publc key: 9f4da00116c38ec5




The dir to copy: Mybackup




then command


Copy C:\windows\Assembly\mydll\1.0.0.0__9f4da00116c38ec5\mydll.dll c:\Mybackup

No comments: