From 5d77874382f55cdf5268b19ebb97ec07727ca78f Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Fri, 26 Jul 2024 16:23:39 -0700 Subject: [PATCH] Correcting CppWinRT references (#34025) ## Summary of the Pull Request From the WinAppSdk 1.6 test upgrade, we caught a linking issue when we retargetted to 22000. This is a screenshot from only touching Cpp.Build.props without the fixes but the retarget. ![image](https://github.com/user-attachments/assets/03c0b592-d600-41f9-b8b4-c3976423003a) ![image](https://github.com/user-attachments/assets/b7928481-3ff2-44ba-889c-0370ef977643) ## PR Checklist - [ ] **Closes:** #xxx - [ ] **Communication:** I've discussed this with core contributors already. If 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 --- .../FileLocksmithContextMenu.vcxproj | 4 ++++ .../FileLocksmithContextMenu.vcxproj.filters | 4 ++++ .../FileLocksmithContextMenu/packages.config | 1 + .../FileLocksmithLib/FileLocksmithLib.vcxproj | 12 ++++++++++++ .../FileLocksmithLib.vcxproj.filters | 3 +++ .../FileLocksmithLib/packages.config | 4 ++++ .../MouseWithoutBordersModuleInterface.vcxproj | 5 ++++- .../ImageResizerLib/ImageResizerLib.vcxproj | 17 +++++++++++++++-- .../ImageResizerLib.vcxproj.filters | 3 +++ .../ImageResizerLib/packages.config | 4 ++++ 10 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 src/modules/FileLocksmith/FileLocksmithLib/packages.config create mode 100644 src/modules/imageresizer/ImageResizerLib/packages.config diff --git a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj index e7a97bde418..ac0580c2a07 100644 --- a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj +++ b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj @@ -1,5 +1,6 @@ + @@ -141,11 +142,14 @@ MakeAppx.exe pack /d . /p $(OutDir)FileLocksmithContextMenuPackage.msix /nv + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + \ No newline at end of file diff --git a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters index 3c0d4c87d85..5ec85858299 100644 --- a/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters +++ b/src/modules/FileLocksmith/FileLocksmithContextMenu/FileLocksmithContextMenu.vcxproj.filters @@ -61,10 +61,14 @@ Resource Files + Resource Files + + + \ No newline at end of file diff --git a/src/modules/FileLocksmith/FileLocksmithContextMenu/packages.config b/src/modules/FileLocksmith/FileLocksmithContextMenu/packages.config index 6199e2345cc..ff4b0596486 100644 --- a/src/modules/FileLocksmith/FileLocksmithContextMenu/packages.config +++ b/src/modules/FileLocksmith/FileLocksmithContextMenu/packages.config @@ -1,4 +1,5 @@  + \ No newline at end of file diff --git a/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj b/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj index 5253d307790..ebbeb208952 100644 --- a/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj +++ b/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj @@ -1,5 +1,6 @@ + 17.0 Win32Proj @@ -78,7 +79,18 @@ Create + + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj.filters b/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj.filters index 8b223a619bc..ed6b2674fcb 100644 --- a/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj.filters +++ b/src/modules/FileLocksmith/FileLocksmithLib/FileLocksmithLib.vcxproj.filters @@ -51,4 +51,7 @@ Source Files + + + \ No newline at end of file diff --git a/src/modules/FileLocksmith/FileLocksmithLib/packages.config b/src/modules/FileLocksmith/FileLocksmithLib/packages.config new file mode 100644 index 00000000000..09bfc449e21 --- /dev/null +++ b/src/modules/FileLocksmith/FileLocksmithLib/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/src/modules/MouseWithoutBorders/ModuleInterface/MouseWithoutBordersModuleInterface.vcxproj b/src/modules/MouseWithoutBorders/ModuleInterface/MouseWithoutBordersModuleInterface.vcxproj index 414c6f74ec7..8f049699470 100644 --- a/src/modules/MouseWithoutBorders/ModuleInterface/MouseWithoutBordersModuleInterface.vcxproj +++ b/src/modules/MouseWithoutBorders/ModuleInterface/MouseWithoutBordersModuleInterface.vcxproj @@ -1,6 +1,6 @@ - + 15.0 {2833C9C6-AB32-4048-A5C7-A70898337B57} @@ -67,11 +67,14 @@ + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + \ No newline at end of file diff --git a/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj b/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj index 7aad6f2cd5d..78b50859086 100644 --- a/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj +++ b/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj @@ -1,5 +1,6 @@ + Win32Proj {18b3db45-4ffe-4d01-97d6-5223feee1853} @@ -30,7 +31,7 @@ ..\..\..\..\$(Platform)\$(Configuration)\ - + PowerToys.$(ProjectName) @@ -75,6 +76,18 @@ + + + - + + + + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + \ No newline at end of file diff --git a/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj.filters b/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj.filters index e09410a77cb..2a0e2dcc777 100644 --- a/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj.filters +++ b/src/modules/imageresizer/ImageResizerLib/ImageResizerLib.vcxproj.filters @@ -42,4 +42,7 @@ Source Files + + + \ No newline at end of file diff --git a/src/modules/imageresizer/ImageResizerLib/packages.config b/src/modules/imageresizer/ImageResizerLib/packages.config new file mode 100644 index 00000000000..09bfc449e21 --- /dev/null +++ b/src/modules/imageresizer/ImageResizerLib/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file