From 5acf70da502e85d98b5e9060f3d26a781c59ea23 Mon Sep 17 00:00:00 2001 From: Ben Carpenter Date: Tue, 7 Feb 2023 15:26:33 -0800 Subject: [PATCH] Update azure-pipelines.yaml # Why ESRP task failing without `2.1.x` sdk # What Changed 1. Added task to use `2.1.x` sdk 1. Replaced `ConnectedServiceName` with variable --- azure-pipelines.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bd156b1..69def18 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,9 +13,14 @@ steps: projects: '**/*.csproj' arguments: '-c $(BuildConfiguration)' +- task: UseDotNet@2 + inputs: + packageType: 'sdk' + version: '2.1.x' + - task: EsrpCodeSigning@1 inputs: - ConnectedServiceName: 'DSX ESRP' + ConnectedServiceName: '$(ConnectedServiceName)' FolderPath: 'src' Pattern: '*.dll' signConfigType: 'inlineSignParams' @@ -52,10 +57,10 @@ steps: packagesToPack: '**/*.csproj' nobuild: true versioningScheme: 'byBuildNumber' - + - task: EsrpCodeSigning@1 inputs: - ConnectedServiceName: 'DSX ESRP' + ConnectedServiceName: '$(ConnectedServiceName)' FolderPath: '$(Build.ArtifactStagingDirectory)' Pattern: '*.nupkg' signConfigType: 'inlineSignParams'