diff --git a/evergreen/evergreen.yml b/evergreen/evergreen.yml index 34c1ab26e83..275bbfa00d4 100644 --- a/evergreen/evergreen.yml +++ b/evergreen/evergreen.yml @@ -1703,6 +1703,9 @@ tasks: - name: test-efcore commands: - func: install-dotnet + vars: + DOTNET_SDK_VERSION: 9.0 + FRAMEWORK: net8.0 - func: bootstrap-mongo-orchestration - command: expansions.update params: diff --git a/evergreen/install-dotnet.sh b/evergreen/install-dotnet.sh index 0112e960200..2798a24c15f 100644 --- a/evergreen/install-dotnet.sh +++ b/evergreen/install-dotnet.sh @@ -9,6 +9,8 @@ echo "runtime: $FRAMEWORK" if [ -n "$FRAMEWORK" ]; then if [ "$FRAMEWORK" = "net6.0" ]; then RUNTIME_VERSION="6.0" + elif [ "$FRAMEWORK" = "net8.0" ]; then + RUNTIME_VERSION="8.0" elif [ "$FRAMEWORK" = "netstandard2.1" ]; then RUNTIME_VERSION="3.1" fi