Load different version of assembly into separate AppDomain

前端 未结 2 1560
失恋的感觉
失恋的感觉 2020-12-10 09:08

I\'m implementing application that supports plugins. Currently the problem arises when I try to load common assembly that is used both by host application and plugi

2条回答
  •  我在风中等你
    2020-12-10 09:49

    Most likely it is your own code that load latest version first - check if CommonLib is loaded into new app domain right before the call to Load.

    If it is the case you'll need to be very careful in linking your main code to CommonLib to avoid loading latest version too early. You may even need to use late binding/reflection for it.

提交回复
热议问题