How can I load two versions of same assemblies into two different domains from two different subfolders?

后端 未结 2 396
旧时难觅i
旧时难觅i 2021-01-14 12:32

I\'m trying to build a small tool for comparing types in a bunch of assemblies. For this purpose I created two subfolders and put the respective dlls there:

2条回答
  •  伪装坚强ぢ
    2021-01-14 12:37

    If you don't want to recompile the assemblies with a different strong name, than you can load them into different AppDomains, with different setup configuration, and different .config files, exactly like IIS does with multiple web sites, each one in its one AppDomain, completely independent, all hosted in only one AppPool process - w3wp.exe.

提交回复
热议问题