When 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?
When loading a .NET Framework runtime a new
AppDomainis created and everything is loaded into thatAppDomain. However, when using Core CLR this isn't possible and everything is loaded into the singleAppDomain. Could we instead create a newAssemblyLoadContextand 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?