We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74986b4 commit a2d996aCopy full SHA for a2d996a
Engine/PSScriptAnalyzer.psm1
@@ -13,7 +13,8 @@ $PSModuleRoot = $PSModule.ModuleBase
13
# Import the appropriate nested binary module based on the current PowerShell version
14
$binaryModuleRoot = $PSModuleRoot
15
16
-if ($PSVersionTable.PSEdition -ne 'Desktop') {
+
17
+if (($PSVersionTable.Keys -contains "PSEdition") -and ($PSVersionTable.PSEdition -ne 'Desktop')) {
18
$binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath 'coreclr'
19
}
20
else
0 commit comments