Skip to content

Commit 4c71ea2

Browse files
committed
update buildspec to install .NET9
1 parent e33a9e8 commit 4c71ea2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

buildtools/ci.buildspec.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ phases:
55
runtime-versions:
66
dotnet: 8.x
77
commands:
8-
# The tests need .NET 3.1, 6 and 8. .NET6 is installed by default. .NET8 is added in the runtime-versions. .NET 3.1 is installed manually.
8+
# Find and delete the global.json files that were added by CodeBuild. This causes issues when multiple SDKs are installed.
9+
- find / -type f -name 'global.json' -delete
10+
# The tests need .NET 3.1, 6, 8 and 9. .NET6 is installed by default. .NET8 is added in the runtime-versions. .NET 3.1 and 9 are installed manually.
911
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 3.1
12+
- curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --channel 9.0
1013
build:
1114
commands:
1215
- dotnet msbuild buildtools/build.proj /t:unit-tests /p:Cicd=true

0 commit comments

Comments
 (0)