Skip to content

Commit

Permalink
Require powershell 7.2 for scripts susceptible to be run manually (#4811
Browse files Browse the repository at this point in the history
)
  • Loading branch information
guhetier authored Feb 14, 2025
1 parent 47042ad commit 35c3433
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ This script provides helpers for building msquic.
#>

#Requires -Version 7.2

param (
[Parameter(Mandatory = $false)]
[ValidateSet("Debug", "Release")]
Expand Down
2 changes: 2 additions & 0 deletions scripts/generate-dotnet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#>

#Requires -Version 7.2

Set-StrictMode -Version 'Latest'
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'

Expand Down
2 changes: 2 additions & 0 deletions scripts/prepare-machine.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ on the provided configuration.
#>

#Requires -Version 7.2

param (
[Parameter(Mandatory = $false)]
[string]$Tls = "",
Expand Down
2 changes: 2 additions & 0 deletions scripts/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ This script runs the MsQuic tests.
test.ps1 -Filter ParameterValidation* -NumIterations 10
#>

#Requires -Version 7.2

param (
[Parameter(Mandatory = $false)]
[ValidateSet("Debug", "Release")]
Expand Down
2 changes: 2 additions & 0 deletions scripts/update-sidecar.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ This regenerates the CLOG sidecar file.
#>

#Requires -Version 7.2

Set-StrictMode -Version 'Latest'
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'

Expand Down

0 comments on commit 35c3433

Please sign in to comment.