How do I "Unload" a plugin/dll
LogicielCX opened this issue · comments
One of the parameters in the CreateFromAssemblyFile method is "isUnloadable". Setting that to true, I assume, allows you to free up the dll when you're done with it (allowing the dll file to be overwritten in the file system). Once I get what I need from the loaded plugin, how to I now unload it so its free?
I have a scenario where I can upload dll files, and will be using this library to load it in for use in a .NET Core 3.1 online portal. I need to be able to load it, use it, then unload it so updated dll files can replace it on occasion.
The PluginLoader object is disposable and will unload the plugin on dispose.
DotNetCorePlugins/src/Plugins/PluginLoader.cs
Line 307 in e1e4567