From ca4f95cc4f703398b49ad3873ddcdaffd2302e34 Mon Sep 17 00:00:00 2001 From: Dan Walmsley Date: Wed, 27 Oct 2021 11:40:17 +0100 Subject: [PATCH] use pipelines sdk install task for linux and osx. --- azure-pipelines.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 80a5a76dd7..f91c711b93 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,11 +3,15 @@ jobs: pool: vmImage: 'ubuntu-20.04' steps: - - task: CmdLine@2 - displayName: 'Download SDK' + - task: UseDotNet@2 + displayName: 'Use .NET Core SDK 3.1.401' inputs: - script: | - ./get-sdk.sh + version: 3.1.401 + + - task: UseDotNet@2 + displayName: 'Use .NET Core SDK 5.0.402' + inputs: + version: 5.0.402 - task: CmdLine@2 displayName: 'Run Build' inputs: @@ -28,11 +32,15 @@ jobs: pool: vmImage: 'macOS-10.15' steps: - - task: CmdLine@2 - displayName: 'Download SDK' + - task: UseDotNet@2 + displayName: 'Use .NET Core SDK 3.1.401' inputs: - script: | - ./get-sdk.sh + version: 3.1.401 + + - task: UseDotNet@2 + displayName: 'Use .NET Core SDK 5.0.402' + inputs: + version: 5.0.402 - task: CmdLine@2 displayName: 'Install Mono 5.18' inputs: