2 ms·
Depending on your needs, of course, AssemblyLoadContext supports unloading, if the goal is simply loading then unloading plugins. (Security sandboxing is obvio
by WorldMaker 7y ago
Depending on your needs, of course, AssemblyLoadContext supports unloading, if the goal is simply loading then unloading plugins.
(Security sandboxing is obviously a different matter, but Microsoft hasn't seemed too keen on the old .NET 1.0 CAS model for over a decade now, and has mostly recommended against it.)
Example code: https://github.com/dotnet/samples/tree/master/core/tutorials/Unloading https://github.com/dotnet/samples/tree/master/core/tutorials...