Overwriting dlls in MEF

时光怂恿深爱的人放手 提交于 2019-12-01 09:31:19

This is not an MEF issue - it is your appdomain standard setup that locks the DLL's touched. Check http://www.vistax64.com/powershell/26164-reflection-assembly-loadfile-locks-file.html for a similar issue not involveind MEF.

Basically, do not run on the dll's, make a copy first and work on the copy ;)

Check http://bartdesmet.net/blogs/bart/archive/2006/07/29/4146.aspx for the AppDomain ShadowCopy mechanism ;)

I suspect it will work if you completely unload any AppDomain which currently references the DLL.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!