How to extract an assembly from the GAC?

后端 未结 15 2040
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 15:29

There is a package I have to deal with which installs assemblies straight into the GAC (e.g. somewhere deep in %windows%/assembly).

How do I exorcise the actual as

15条回答
  •  长情又很酷
    2020-11-29 15:55

    I think the easiest way is to do it through the command line like David mentions. The only trick is that the .dll isn't simply located at C:\Windows\Assembly. You have to navigate to C:\Windows\Assembly\GAC\[ASSEMBLY_NAME]\[VERSION_NUMBER]_[PUBLIC KEY]. You can then do a copy using:

    copy [ASSEMBLY_NAME].dll c:\ (or whatever location you want)

    Hope that helps.

提交回复
热议问题