From 42ff671df4c61ce1e277519e471e1da1be92cf70 Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Tue, 10 Dec 2024 13:32:15 +0800 Subject: [PATCH] [Eng]Adjust order of donet task and install dotnet tool task --- .azure-pipelines/daily-build.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.azure-pipelines/daily-build.yml b/.azure-pipelines/daily-build.yml index 3b5c7abc2557..6260d4342f03 100644 --- a/.azure-pipelines/daily-build.yml +++ b/.azure-pipelines/daily-build.yml @@ -27,13 +27,16 @@ jobs: git config --global core.longpaths true # Wipe any changes from a previous branch git clean -xdf - + - task: UseDotNet@2 + displayName: 'Use .NET Core sdk 6.0.x for build' + inputs: + packageType: sdk + version: 6.0.x - task: PowerShell@2 displayName: Prepare Powershell $(PSVersion) inputs: filePath: 'tools/Test/SmokeTest/PrepareRequiredPowershell.ps1' arguments: '-RequiredPsVersion $(PSVersion)' - - task: PowerShell@2 displayName: 'Install platyPS' inputs: @@ -43,11 +46,6 @@ jobs: Install-Module platyPS -Force -Confirm:`$false -Scope CurrentUser ` Exit" dotnet tool run pwsh -c $command - - task: UseDotNet@2 - displayName: 'Use .NET Core sdk 6.0.x for build' - inputs: - packageType: sdk - version: 6.0.x - task: DotNetCoreCLI@2 displayName: 'Build for Bumping Version' inputs: