We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2856a21 commit 464dd82Copy full SHA for 464dd82
1 file changed
.build.ps1
@@ -37,7 +37,10 @@ if ($UpdateMarkdown -and ($Tasks -notcontains 'GenerateHelp')) {
37
if ($PushToGallery -and ($Tasks -notcontains 'Release')) {
38
throw "-PushToGallery is only valid when -Tasks includes 'Release'. Current Tasks: $($Tasks -join ', ')"
39
}
40
-
+# Template requirement: PowerShell (pwsh) only. Windows PowerShell 5.1 is unsupported.
41
+if ($PSVersionTable.PSVersion -lt [Version]'7.4') {
42
+ throw "This build requires PowerShell 7.4+. Current: $($PSVersionTable.PSVersion). Use 'pwsh' and retry."
43
+}
44
# --- Setup ---
45
46
Set-StrictMode -Version Latest
0 commit comments