PowerShellEditorServices made some changes to how it handles it's own assemblies. In PowerShell Core it uses AssemblyLoadContexts to separate it's dependencies from the rest of the process. We need those dependencies (and cannot load our own copies as they'll load as separate assemblies and cause JIT time exceptions etc) so we load ourselves into PSES's custom load context.
PowerShellEditorServices made some changes to how it handles it's own assemblies. In PowerShell Core it uses
AssemblyLoadContext
s to separate it's dependencies from the rest of the process. We need those dependencies (and cannot load our own copies as they'll load as separate assemblies and cause JIT time exceptions etc) so we load ourselves into PSES's custom load context.