From 6dfd32dac664df45d7043536a1cc94f750c39c94 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Wed, 7 Jul 2021 11:22:18 +0100 Subject: [PATCH] Ensure an older NuGet is installed (#14400) * Update azure-pipelines.yml * Use 5.8.1 Co-authored-by: Matthew Leibowitz --- azure-pipelines.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index aa4b14560b0..34b34cb33b2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,7 +6,7 @@ variables: - name: BuildVersion value: $[counter('nuget-counter', 126)] - name: NUGET_VERSION - value: 5.6.0 + value: 5.8.1 - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE value: true - name: DOTNET_VERSION @@ -259,5 +259,7 @@ stages: signedArtifactPath: signed displayName: Sign Phase condition: and(succeeded(), ne(variables['signVmImage'], ''), or(eq(variables['Sign'], 'true'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'],'refs/tags/')))) - - + preSignSteps: + - task: NuGetToolInstaller@1 + inputs: + versionSpec: $(NUGET_VERSION)