Skip to content

Commit 8b43b22

Browse files
Lower required PowerShell version from 7.5 to 7.4 to match GitHub build agents
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a65c20b commit 8b43b22

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ param(
1313
[string[]]$BuildArgs # Arguments passed to `Build.ps1` within the container.
1414
)
1515

16-
# Require PowerShell 7.5 or higher (run with pwsh, not powershell)
17-
if ($PSVersionTable.PSVersion -lt [Version]'7.5')
16+
# Require PowerShell 7.4 or higher (the version installed on GitHub build agents)
17+
if ($PSVersionTable.PSVersion -lt [Version]'7.4')
1818
{
19-
Write-Error "This script requires PowerShell 7.5 or higher (run with 'pwsh', not 'powershell'). Current version: $($PSVersionTable.PSVersion)"
19+
Write-Error "This script requires PowerShell 7.4 or higher (run with 'pwsh', not 'powershell'). Current version: $($PSVersionTable.PSVersion)"
2020
exit 1
2121
}
2222

src/PostSharp.Engineering.BuildTools/Resources/Build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ param(
1313
[string[]]$BuildArgs # Arguments passed to `Build.ps1` within the container.
1414
)
1515

16-
# Require PowerShell 7.5 or higher (run with pwsh, not powershell)
17-
if ($PSVersionTable.PSVersion -lt [Version]'7.5')
16+
# Require PowerShell 7.4 or higher (the version installed on GitHub build agents)
17+
if ($PSVersionTable.PSVersion -lt [Version]'7.4')
1818
{
19-
Write-Error "This script requires PowerShell 7.5 or higher (run with 'pwsh', not 'powershell'). Current version: $($PSVersionTable.PSVersion)"
19+
Write-Error "This script requires PowerShell 7.4 or higher (run with 'pwsh', not 'powershell'). Current version: $($PSVersionTable.PSVersion)"
2020
exit 1
2121
}
2222

0 commit comments

Comments
 (0)