From 9d23feedb1a2b8e34dc59d95d9ec488fff802ee4 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Tue, 26 Oct 2021 21:12:10 +0100 Subject: [PATCH] install both 3.1 and 5.0 sdks. --- azure-pipelines.yml | 5 +++++ get-sdk.sh | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4cf9c7d4c4..80a5a76dd7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -95,6 +95,11 @@ jobs: variables: SolutionDir: '$(Build.SourcesDirectory)' steps: + - task: UseDotNet@2 + displayName: 'Use .NET Core SDK 3.1.401' + inputs: + version: 3.1.401 + - task: UseDotNet@2 displayName: 'Use .NET Core SDK 5.0.402' inputs: diff --git a/get-sdk.sh b/get-sdk.sh index 4427948864..05f072c704 100755 --- a/get-sdk.sh +++ b/get-sdk.sh @@ -6,7 +6,7 @@ SDK_DIR=$SCRIPT_DIR/sdk DOTNET_INSTALL_FILE="$SDK_DIR/dotnet-install.sh" DOTNET_INSTALL_URL="https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.sh" -DOTNET_VERSION=5.0.302 +DOTNET_VERSION=5.0.402 mkdir -p "$SDK_DIR" @@ -15,7 +15,7 @@ if [ ! -f "$DOTNET_INSTALL_FILE" ]; then chmod +x "$DOTNET_INSTALL_FILE" fi -"$DOTNET_INSTALL_FILE" --install-dir "$SDK_DIR" --version 5.0.302 +"$DOTNET_INSTALL_FILE" --install-dir "$SDK_DIR" --version 5.0.402 "$DOTNET_INSTALL_FILE" --install-dir "$SDK_DIR" --version 3.1.20 --runtime dotnet "$DOTNET_INSTALL_FILE" --install-dir "$SDK_DIR" --version 3.1.20 --runtime aspnetcore