How to load an assembly without using Assembly.Load?

后端 未结 4 681
时光说笑
时光说笑 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 17:59

    You can create a temporary copy of the assembly and load that copy with Assembly.Load. Place a file monitor on the original, and unload/reload a temp copy of the updated assembly when the file monitor detects a change.

提交回复
热议问题