Browse Source

install both 3.1 and 5.0 sdks.

pull/6757/head
Dan Walmsley 5 years ago
parent
commit
9d23feedb1
  1. 5
      azure-pipelines.yml
  2. 4
      get-sdk.sh

5
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:

4
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

Loading…
Cancel
Save