Skip to content

Commit 5cd65bd

Browse files
authored
Update minimum PowerShell version to 7.1.7 (#1769)
* Update minimum PowerShell version to 7.1.5 * Update PSScriptAnalyzer.psm1 * Update PSScriptAnalyzer.psm1
1 parent 2c03f78 commit 5cd65bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/PSScriptAnalyzer.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ $PSModuleRoot = $PSModule.ModuleBase
99

1010
# Import the appropriate nested binary module based on the current PowerShell version
1111
$binaryModuleRoot = $PSModuleRoot
12-
[Version] $minimumPowerShellCoreVersion = '7.0.3'
12+
[Version] $minimumPowerShellCoreVersion = '7.1.7'
1313
if ($PSVersionTable.PSVersion.Major -ge 6) {
1414
$binaryModuleRoot = Join-Path -Path $PSModuleRoot -ChildPath "PSv$($PSVersionTable.PSVersion.Major)"
1515
# Minimum PowerShell Core version given by PowerShell Core support itself and
1616
# the version of Nuget references, such as e.g. Newtonsoft.Json inside PowerShell itself
1717
# or the version of the System.Management.Automation NuGet reference in PSSA.
18-
18+
1919
if ($PSVersionTable.PSVersion -lt $minimumPowerShellCoreVersion) {
2020
throw "Minimum supported version of PSScriptAnalyzer for PowerShell Core is $minimumPowerShellCoreVersion but current version is '$($PSVersionTable.PSVersion)'. Please update PowerShell Core."
2121
}

0 commit comments

Comments
 (0)