File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
[switch ]$All ,
8
8
9
9
[Parameter (ParameterSetName = " BuildOne" )]
10
- [ValidateRange (3 , 6 )]
10
+ [ValidateRange (3 , 7 )]
11
11
[int ]$PSVersion = $PSVersionTable.PSVersion.Major ,
12
12
13
13
[Parameter (ParameterSetName = " BuildOne" )]
@@ -36,6 +36,12 @@ param(
36
36
[Parameter (ParameterSetName = ' Bootstrap' )]
37
37
[switch ] $Bootstrap
38
38
)
39
+ BEGIN {
40
+ if ($PSVersion -gt 6 ) {
41
+ # due to netstandard2.0 we do not need to treat PS version 7 differently
42
+ $PSVersion = 6
43
+ }
44
+ }
39
45
40
46
END {
41
47
Import-Module - Force (Join-Path $PSScriptRoot build.psm1)
Original file line number Diff line number Diff line change @@ -144,6 +144,8 @@ function Start-ScriptAnalyzerBuild
144
144
param (
145
145
[switch ]$All ,
146
146
147
+ # Note that 6 should also be chosen for PowerShell7 as both implement netstandard2.0
148
+ # and we do not use features from netstandard2.1
147
149
[ValidateRange (3 , 6 )]
148
150
[int ]$PSVersion = $PSVersionTable.PSVersion.Major ,
149
151
You can’t perform that action at this time.
0 commit comments