From abaee845c30c747f30190ad30b8f602382d4bd18 Mon Sep 17 00:00:00 2001 From: Matt Cooley Date: Thu, 4 Jun 2020 10:19:27 -0700 Subject: [PATCH] Use NuGet 5.x (#1262) * Use NuGet 5.x * Use tool installer v1 * Remove duplicate NonInteractive argument --- build/pipelines/templates/build-single-architecture.yaml | 9 ++++----- .../templates/prepare-release-internalonly.yaml | 7 +++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/build/pipelines/templates/build-single-architecture.yaml b/build/pipelines/templates/build-single-architecture.yaml index a3e1d46..3e826e5 100644 --- a/build/pipelines/templates/build-single-architecture.yaml +++ b/build/pipelines/templates/build-single-architecture.yaml @@ -5,11 +5,10 @@ parameters: extraMsBuildArgs: '' steps: - - task: NuGetToolInstaller@0 - displayName: Use NuGet 5.0.2 + - task: NuGetToolInstaller@1 + displayName: Use NuGet 5.x inputs: - versionSpec: 5.0.2 - checkLatest: true + versionSpec: 5.x # In most accounts, you can just use 'NuGetCommand' instead of this GUID. # In the microsoft.visualstudio.com account, NuGetCommand is ambiguous so the GUID is needed. @@ -17,7 +16,7 @@ steps: displayName: NuGet restore src/Calculator.sln inputs: command: custom - arguments: restore src/Calculator.sln -Verbosity Detailed -NonInteractive + arguments: restore src/Calculator.sln -Verbosity Detailed - task: PowerShell@2 displayName: Set version number in AppxManifest diff --git a/build/pipelines/templates/prepare-release-internalonly.yaml b/build/pipelines/templates/prepare-release-internalonly.yaml index f33247d..2e05f83 100644 --- a/build/pipelines/templates/prepare-release-internalonly.yaml +++ b/build/pipelines/templates/prepare-release-internalonly.yaml @@ -39,11 +39,10 @@ jobs: env: XES_DISABLEPROV: true - - task: NuGetToolInstaller@0 - displayName: Use NuGet 4.7.1 + - task: NuGetToolInstaller@1 + displayName: Use NuGet 5.x inputs: - versionSpec: 4.7.1 - checkLatest: true + versionSpec: 5.x - task: DownloadBuildArtifacts@0 displayName: Download appxBundle artifact