How to load an assembly without using Assembly.Load?

后端 未结 4 670
时光说笑
时光说笑 2020-12-29 17:03

Is it possible to do this by streaming the assembly into memory? If so, how does one do this?

Reason:

I don\'t want to lock the dll that\'s loaded. I want to

4条回答
  •  遥遥无期
    2020-12-29 18:07

    If you compile the DLLs on fly from the sources, you don't necessarily even have to make a copy, instead the re-compile process should be as following:

    1) Destroy the application domain that has the assemblies loaded, effectively unlocking the DLLs.

    2) Re-compile the scripts.

    3) Re-create the application domain for plugins, and load the new assemblies in it.

提交回复
热议问题