Skip to content

Commit 385eb55

Browse files
committed
Update build commands to ensure minimum .NET SDK is 9
1 parent e2c61c2 commit 385eb55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ else
1919
guard_bin mono "please install Mono from https://www.mono-project.com/"
2020
fi
2121

22-
[ $(dotnet --version | cut -d. -f1) -ge 8 ] || write_error ".NET SDK version $(dotnet --version) is too low; please install version 8.0 or later from https://dot.net/"
22+
[ $(dotnet --version | cut -d. -f1) -ge 9 ] || write_error ".NET SDK version $(dotnet --version) is too low; please install version 9.0 or later from https://dot.net/"
2323

2424
git submodule status | while read line; do
2525
if [ "$(echo $line | cut -b1)" == "-" ]; then

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ if ($null -eq (Get-Command "dotnet" -ErrorAction Ignore)) {
2121
}
2222

2323
$version = [Version]$([regex]::matches((&dotnet --version), '^(\d+\.)?(\d+\.)?(\*|\d+)').value)
24-
if ($version.Major -lt 8) {
25-
throw ".NET SDK version ($version) is too low; please install version 8.0 or later"
24+
if ($version.Major -lt 9) {
25+
throw ".NET SDK version ($version) is too low; please install version 9.0 or later"
2626
}
2727

2828
if ($null -eq (Get-Command "msbuild.exe" -ErrorAction Ignore)) {

0 commit comments

Comments
 (0)