From 6e17a69cf9753bf95ebd066bdebf255bd8024f84 Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Sun, 6 Jun 2021 16:40:04 +0200 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2d7fc2e..194b7c0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,6 +16,9 @@ variables: steps: - task: NuGetToolInstaller@1 + inputs: + versionSpec: + checkLatest: true - task: UseDotNet@2 displayName: 'Use .NET Core sdk 3.1.2' @@ -30,6 +33,12 @@ steps: # restoreSolution: '$(solution)' # feedsToUse: config ## => not more working, removed, trying via MSBuild restoreNugetPackages +- task: NuGetCommand@2 + displayName: NuGet restore + inputs: + command: 'restore' + restoreSolution: '$(solution)' + feedsToUse: 'select' #- task: DotNetCoreCLI@2 # displayName: Publish single-exe x64 @@ -66,7 +75,6 @@ steps: displayName: 'MSBuild' inputs: solution: '**/*.sln' - restoreNugetPackages: true msbuildArguments: '-p:Configuration=Release -p:Platform="Any CPU"' # msbuildArguments: '-p:Configuration=Release -p:Platform=x64' # msbuildArguments: '-p:Configuration=Release -p:Platform=x86'