SeeminglyScience / EditorServicesCommandSuite

Collection of editor commands for use in PowerShell Editor Services.
Other
152 stars 13 forks source link

Load ESCS in PSES's load context when in PSCore #48

Closed SeeminglyScience closed 4 years ago

SeeminglyScience commented 4 years ago

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.