Limitations of AssemblyLoadContext Unloading for Hot‑Swap in .NET 6
Goal: Replace the implementation of a service interface in a running .NET 6 process without restarting the host, by loading a new version into a separate AssemblyLoadContext and unloading the old one. Constraint: The service interface (IService) must reside in a shared AssemblyLoadContext that stays loaded; any types that need to persist across versions cann