Skip to content

Commit a2d996a

Browse files
author
Kapil Borle
committed
Update module manifest to test PSEdition
1 parent 74986b4 commit a2d996a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Engine/PSScriptAnalyzer.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ $PSModuleRoot = $PSModule.ModuleBase
1313
# Import the appropriate nested binary module based on the current PowerShell version
1414
$binaryModuleRoot = $PSModuleRoot
1515

16-
if ($PSVersionTable.PSEdition -ne 'Desktop') {
16+
17+
if (($PSVersionTable.Keys -contains "PSEdition") -and ($PSVersionTable.PSEdition -ne 'Desktop')) {
1718
$binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath 'coreclr'
1819
}
1920
else

0 commit comments

Comments
 (0)