Help needed with unloading .DLL's from AppDomain - Still not working even with ShadowCopy

前端 未结 3 1548
执笔经年
执笔经年 2020-12-21 07:01

I am trying to do the following. App A is the \"mother app\". It stays open. App B is just a .DLL where I write some classes that are derived from an interface specified in

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 07:53

    The main problem is where you do:

    Type type = assm.GetType("TestClient." + typeName);
    

    This is happening in App A's main AppDomain, and the consequence is that the main AppDomain locks App B's assembly .dll

    The link in flq's answer to his blog post should work for you.

提交回复
热议问题