Isolate loaded assemblies inside an AssemblyLoadContext · Issue #2599 · pythonnet/pythonnet
Repository navigation
Isolate loaded assemblies inside an AssemblyLoadContext #2599
New issue
New issue
Open
Open
Isolate loaded assemblies inside an AssemblyLoadContext #2599
Description
@rmanthorpe's profile rmanthorpe opened on Jun 16, 2025When loading a .NET Framework runtime a new AppDomain is created and everything is loaded into that AppDomain. However, when using Core CLR this isn't possible and everything is loaded into the single AppDomain. Could we instead create a new AssemblyLoadContext and load all referenced assemblies into this in order to give some level of isolation between PythonNET and anything else that might be using .NET within the same process?