From 0a9e889b1ba98b0d683123c2b3727ee049f6f4d1 Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Wed, 24 Jul 2024 17:49:08 +0200 Subject: [PATCH] [Build][Installer]Fix NU1503 build warnings (#33938) ## Summary of the Pull Request This PR aims for fix some CI build warnings. ## Detailed Description of the Pull Request / Additional comments ### Warning NU1503 Fix warning NU1503 for wix toolset projects marking them as restorable and adding an empty restore target. ### No test result files matching '[ '**/*.trx' ]' were found. Skip publishing of test results for ARM64 since pipeline isn't running ARM64 tests ![image](https://github.com/user-attachments/assets/10a64ca2-2bff-42a8-ade9-07bd5ad88e3c) --- .pipelines/ci/templates/build-powertoys-steps.yml | 2 +- installer/PowerToysSetup/PowerToysBootstrapper.wixproj | 8 ++++++++ installer/PowerToysSetup/PowerToysInstaller.wixproj | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/.pipelines/ci/templates/build-powertoys-steps.yml b/.pipelines/ci/templates/build-powertoys-steps.yml index f1f3dbe048..2aa1390c4d 100644 --- a/.pipelines/ci/templates/build-powertoys-steps.yml +++ b/.pipelines/ci/templates/build-powertoys-steps.yml @@ -246,7 +246,7 @@ steps: inputs: testResultsFormat: VSTest testResultsFiles: '**/*.trx' - condition: always() + condition: ne(variables['BuildPlatform'],'arm64') # Native dlls - task: VSTest@2 diff --git a/installer/PowerToysSetup/PowerToysBootstrapper.wixproj b/installer/PowerToysSetup/PowerToysBootstrapper.wixproj index ca71607595..71742c2c79 100644 --- a/installer/PowerToysSetup/PowerToysBootstrapper.wixproj +++ b/installer/PowerToysSetup/PowerToysBootstrapper.wixproj @@ -76,4 +76,12 @@ + + + + + <_ValidProjectsForRestore Include="$(MSBuildProjectFullPath)" /> + + + \ No newline at end of file diff --git a/installer/PowerToysSetup/PowerToysInstaller.wixproj b/installer/PowerToysSetup/PowerToysInstaller.wixproj index 0d3487ccce..1a4aa1f67b 100644 --- a/installer/PowerToysSetup/PowerToysInstaller.wixproj +++ b/installer/PowerToysSetup/PowerToysInstaller.wixproj @@ -185,4 +185,12 @@ call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuil + + + + + <_ValidProjectsForRestore Include="$(MSBuildProjectFullPath)" /> + + + \ No newline at end of file