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
It can be done by an overload of Load using byte array. You need to read the assembly bytes before the load and it won't lock the file:
byte[] readAllBytes = File.ReadAllBytes("path"); Assembly assembly = Assembly.Load(readAllBytes);