Skip to content

Commit a64dfa6

Browse files
committed
Fix issue with loading PSES in PowerShell Core 6.0.0-beta3
This change fixes an issue caused by PowerShell Core 6.0.0-beta3's AssemblyLoadContext changes where the Protocol assembly isn't being auto-loaded when the Host assembly gets loaded. The fix is to explicitly load that assembly when loaded inside of PowerShell Core. Resolves PowerShell#529
1 parent a364e4b commit a64dfa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

module/PowerShellEditorServices/PowerShellEditorServices.psm1

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if (!$PSVersionTable.PSEdition -or $PSVersionTable.PSEdition -eq "Desktop") {
99
}
1010
else {
1111
Add-Type -Path "$PSScriptRoot/bin/Core/Microsoft.PowerShell.EditorServices.dll"
12+
Add-Type -Path "$PSScriptRoot/bin/Core/Microsoft.PowerShell.EditorServices.Protocol.dll"
1213
Add-Type -Path "$PSScriptRoot/bin/Core/Microsoft.PowerShell.EditorServices.Host.dll"
1314
}
1415

0 commit comments

Comments
 (0)