From 03d1dfca2df1c60ee1e594726cfec1bc65b2ab47 Mon Sep 17 00:00:00 2001 From: leileizhang Date: Thu, 8 Jan 2026 00:08:55 +0800 Subject: [PATCH] [UI tests] Fix "UI tests pipeline build failed " (#44574) --- .pipelines/v2/templates/job-build-ui-tests.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.pipelines/v2/templates/job-build-ui-tests.yml b/.pipelines/v2/templates/job-build-ui-tests.yml index 342750d51c..346248b80a 100644 --- a/.pipelines/v2/templates/job-build-ui-tests.yml +++ b/.pipelines/v2/templates/job-build-ui-tests.yml @@ -68,14 +68,13 @@ jobs: - template: .\steps-restore-nuget.yml - - task: NuGetCommand@2 + - task: MSBuild@1 displayName: Restore solution-level NuGet packages inputs: - command: restore - feedsToUse: config - configPath: nuget.config - restoreSolution: PowerToys.slnx - restoreDirectory: '$(Build.SourcesDirectory)\packages' + solution: PowerToys.slnx + msbuildArguments: '/t:restore /p:RestorePackagesConfig=true' + platform: $(BuildPlatform) + configuration: $(BuildConfiguration) # Build all UI test projects if no specific modules are specified - ${{ if eq(length(parameters.uiTestModules), 0) }}: