I'm loading a DLL
via System.Reflection.Assembly.LoadFile
and reflecting over it's members in a plugin-esque system.
I need to be able to update/overwrite these DLL
while the system is running but it appears that after calling System.Reflection.Assembly.LoadFile
the file is subsequently locked.
Does anyone know of a way to unlock the file?
I have read about loading the file in a separate appdomain? Are there any pitfalls to this approach?