NET Core Application Domains
summary
Explains why AppDomains disappear in .NET Core and how dynamic plugin loading uses AssemblyLoadContext instead: shows working custom loader pattern, describes LoadFrom failure modes (missing deps and version races), and that correct resolution uses deps.json or .NET Core 3.0's AssemblyDependencyResolver. Demonstrates that collectible contexts require IsCollectible=true and that Unload waits for no external references, not force-kill threads. Notes tradeoffs: per-context isolation of versions but no sandboxed permissions (process-level only) and practical limits of unloading and native DLLs.
AI-written summary · about
