[Question] Hot-reload managed assemblies using assembly file lock instead of through FileStream
PickleUpADoodle opened this issue · comments
PickleUpADoodle commented
I have a question about the methods available for hot-reloading managed DLL files.
This library only supports hot-reload by loading assembly files in memory through a FileStream. Is the only reason locks cannot be used the fact that a loaded assembly cannot be removed from disk, thus making it not possible for the "changed" event to happen regarding the FileWatcher? Or are there more complications making it not possible/feasible? Locks in this case referring to the loading methods where "load-by-name" or path is used (not file stream).