From d0fcd6aebb983bc76d2aa73108c61adbbcb0e6a5 Mon Sep 17 00:00:00 2001 From: Kai Tao <69313318+vanzue@users.noreply.github.com> Date: Fri, 4 Jul 2025 10:09:08 +0800 Subject: [PATCH] Fix wix build (#40387) ## Summary of the Pull Request ## PR Checklist - [ ] **Closes:** #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- installer/PowerToysSetupVNext/Directory.Build.props | 11 +++++++++++ .../PowerToysBootstrapperVNext.wixproj | 3 ++- .../PowerToysInstallerVNext.wixproj | 4 ++-- 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 installer/PowerToysSetupVNext/Directory.Build.props diff --git a/installer/PowerToysSetupVNext/Directory.Build.props b/installer/PowerToysSetupVNext/Directory.Build.props new file mode 100644 index 0000000000..505e3cf844 --- /dev/null +++ b/installer/PowerToysSetupVNext/Directory.Build.props @@ -0,0 +1,11 @@ + + + + + obj\Installer\ + obj\Bootstrapper\ + + + $(BaseIntermediateOutputPath) + + diff --git a/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj b/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj index 759956492e..a842ec9352 100644 --- a/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj +++ b/installer/PowerToysSetupVNext/PowerToysBootstrapperVNext.wixproj @@ -29,7 +29,8 @@ PowerToysUserSetupVNext-$(Version)-$(Platform) $(Platform)\$(Configuration)\MachineSetup $(Platform)\$(Configuration)\UserSetup - obj\$(Platform)\$(Configuration)\ + $(BaseIntermediateOutputPath)$(Platform)\$(Configuration)\MachineSetup + $(BaseIntermediateOutputPath)$(Platform)\$(Configuration)\UserSetup diff --git a/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj b/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj index b45e989173..4de354ad29 100644 --- a/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj +++ b/installer/PowerToysSetupVNext/PowerToysInstallerVNext.wixproj @@ -91,8 +91,8 @@ call powershell.exe -NonInteractive -executionpolicy Unrestricted -File $(MSBuil $(Platform)\$(Configuration)\MachineSetup $(Platform)\$(Configuration)\UserSetup - obj\$(Platform)\$(Configuration)\MachineSetup - obj\$(Platform)\$(Configuration)\UserSetup + $(BaseIntermediateOutputPath)$(Platform)\$(Configuration)\MachineSetup + $(BaseIntermediateOutputPath)$(Platform)\$(Configuration)\UserSetup ICE40