Overwriting dlls in MEF

前端 未结 2 941
暗喜
暗喜 2021-01-15 16:11

Right now, I\'m trying to separate out a set of constantly changing classes into their own dll and dynamically load them using MEF. My problem is that whenever I try and ove

2条回答
  •  天涯浪人
    2021-01-15 16:37

    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 ;)

提交回复
热议问题