From e5f7cd78f114517baf63a12bc57ec44e64898110 Mon Sep 17 00:00:00 2001 From: Manuel de la Pena Date: Sun, 6 Mar 2022 18:34:10 -0500 Subject: [PATCH] [CI] Ensure we have dotnet 3.x to be able to run ESRP. (#14323) * [CI] Ensure we have dotnet 3.x to be able to run ESRP. * do runtime instead * [CI] Force dotnet installation path * [CI] Move task after the build created the path dotnet is looking for * [CI] Remove extra / * [CI] Try getting 5.x and 3x installed * Avoid blank space Co-authored-by: Alex Soto --- tools/devops/automation/templates/build/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/devops/automation/templates/build/build.yml b/tools/devops/automation/templates/build/build.yml index 410c412f55d9..1b117e659d2e 100644 --- a/tools/devops/automation/templates/build/build.yml +++ b/tools/devops/automation/templates/build/build.yml @@ -84,6 +84,19 @@ steps: MacDeveloper: $(mac-developer) HostedMacKeychainPassword: ${{ parameters.keyringPass }} +# the ddsign plugin needs this version or it will crash and will make the sign step fail +- task: UseDotNet@2 + inputs: + packageType: sdk + version: 3.x + displayName: 'Install .NET Core SDK 3.x needed for ESRP' + +- task: UseDotNet@2 + inputs: + packageType: sdk + version: 5.x + displayName: 'Install .NET 5.x SDK' + - task: xamops.azdevex.provisionator-task.provisionator@2 displayName: 'Provision Brew components' inputs: