From a804bf86a4290484630d50490190b86909ec63e6 Mon Sep 17 00:00:00 2001
From: Gordon Lam <73506701+yeelam-gordon@users.noreply.github.com>
Date: Thu, 22 May 2025 20:19:24 -0700
Subject: [PATCH] Update to WinAppSDK 1.7.2 (#39592)
Update to WinAppSDK 1.7.2
---
.pipelines/UpdateVersions.ps1 | 13 ++++++-------
Directory.Packages.props | 2 +-
NOTICE.md | 2 +-
.../PowerToys.MeasureToolCore.vcxproj | 8 ++++----
.../MeasureTool/MeasureToolCore/packages.config | 2 +-
.../Directory.Packages.props | 4 ++--
.../TemplateCmdPalExtension.csproj | 2 +-
.../Microsoft.CmdPal.Common.csproj | 2 +-
.../Microsoft.Terminal.UI.vcxproj | 4 ++--
.../Microsoft.CommandPalette.Extensions.vcxproj | 4 ++--
.../packages.config | 2 +-
src/modules/peek/Peek.UI/Peek.UI.csproj | 2 +-
.../PowerRenameUILib/PowerRenameUI.vcxproj | 8 ++++----
.../powerrename/PowerRenameUILib/packages.config | 2 +-
14 files changed, 28 insertions(+), 29 deletions(-)
diff --git a/.pipelines/UpdateVersions.ps1 b/.pipelines/UpdateVersions.ps1
index a1bc5bef9a..0be3e3d30b 100644
--- a/.pipelines/UpdateVersions.ps1
+++ b/.pipelines/UpdateVersions.ps1
@@ -126,16 +126,15 @@ Get-ChildItem -Path $rootPath -Recurse packages.config | ForEach-Object {
}
# Update Directory.Packages.props file
-$propsFile = [System.IO.Path]::Combine($rootPath,"Directory.Packages.props")
-if (Test-Path $propsFile) {
- $file = Read-FileWithEncoding -Path $propsFile
+Get-ChildItem -Path $rootPath -Recurse "Directory.Packages.props" | ForEach-Object {
+ $file = Read-FileWithEncoding -Path $_.FullName
$content = $file.Content
if ($content -match ''
$oldVersionString = ''
$content = $content -replace $oldVersionString, $newVersionString
- Write-FileWithEncoding -Path $propsFile -Content $content -Encoding $file.encoding
- Write-Host "Modified " $propsFile
+ Write-FileWithEncoding -Path $_.FullName -Content $content -Encoding $file.encoding
+ Write-Host "Modified " $_.FullName
}
}
@@ -144,8 +143,8 @@ Get-ChildItem -Path $rootPath -Recurse *.vcxproj | ForEach-Object {
$file = Read-FileWithEncoding -Path $_.FullName
$content = $file.Content
if ($content -match '\\Microsoft.WindowsAppSDK.') {
- $newVersionString = '\Microsoft.WindowsAppSDK.' + $WinAppSDKVersion + '\'
- $oldVersionString = '\\Microsoft.WindowsAppSDK.[-.0-9a-zA-Z]*\\'
+ $newVersionString = '\Microsoft.WindowsAppSDK.' + $WinAppSDKVersion
+ $oldVersionString = '\\Microsoft.WindowsAppSDK.(?=[-.0-9a-zA-Z]*\d)[-.0-9a-zA-Z]*' #positive lookahead for at least a digit
$content = $content -replace $oldVersionString, $newVersionString
Write-FileWithEncoding -Path $_.FullName -Content $content -Encoding $file.encoding
Write-Host "Modified " $_.FullName
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 083a66e5a9..a4ac308b23 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -55,7 +55,7 @@
-->
-
+
diff --git a/NOTICE.md b/NOTICE.md
index 21d51192c4..9fb3dda87d 100644
--- a/NOTICE.md
+++ b/NOTICE.md
@@ -1472,7 +1472,7 @@ SOFTWARE.
- Microsoft.Windows.CsWin32 0.2.46-beta
- Microsoft.Windows.CsWinRT 2.2.0
- Microsoft.Windows.SDK.BuildTools 10.0.22621.2428
-- Microsoft.WindowsAppSDK 1.7.250401001
+- Microsoft.WindowsAppSDK 1.7.250513003
- Microsoft.WindowsPackageManager.ComInterop 1.10.340
- Microsoft.Xaml.Behaviors.WinUI.Managed 2.0.9
- Microsoft.Xaml.Behaviors.Wpf 1.1.39
diff --git a/src/modules/MeasureTool/MeasureToolCore/PowerToys.MeasureToolCore.vcxproj b/src/modules/MeasureTool/MeasureToolCore/PowerToys.MeasureToolCore.vcxproj
index f0b12187ad..41a968dbae 100644
--- a/src/modules/MeasureTool/MeasureToolCore/PowerToys.MeasureToolCore.vcxproj
+++ b/src/modules/MeasureTool/MeasureToolCore/PowerToys.MeasureToolCore.vcxproj
@@ -1,6 +1,6 @@
-
+
@@ -141,7 +141,7 @@
-
+
@@ -153,7 +153,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/src/modules/MeasureTool/MeasureToolCore/packages.config b/src/modules/MeasureTool/MeasureToolCore/packages.config
index 996736442d..f6fdf954c9 100644
--- a/src/modules/MeasureTool/MeasureToolCore/packages.config
+++ b/src/modules/MeasureTool/MeasureToolCore/packages.config
@@ -4,5 +4,5 @@
-
+
\ No newline at end of file
diff --git a/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/Directory.Packages.props b/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/Directory.Packages.props
index 7a8dfdc97a..cf286b3822 100644
--- a/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/Directory.Packages.props
+++ b/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/Directory.Packages.props
@@ -1,4 +1,4 @@
-
+
true
@@ -9,7 +9,7 @@
-
+
diff --git a/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/TemplateCmdPalExtension/TemplateCmdPalExtension.csproj b/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/TemplateCmdPalExtension/TemplateCmdPalExtension.csproj
index 72e6d7400b..af4ca3525d 100644
--- a/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/TemplateCmdPalExtension/TemplateCmdPalExtension.csproj
+++ b/src/modules/cmdpal/ExtensionTemplate/TemplateCmdPalExtension/TemplateCmdPalExtension/TemplateCmdPalExtension.csproj
@@ -1,4 +1,4 @@
-
+
WinExe
TemplateCmdPalExtension
diff --git a/src/modules/cmdpal/Microsoft.CmdPal.Common/Microsoft.CmdPal.Common.csproj b/src/modules/cmdpal/Microsoft.CmdPal.Common/Microsoft.CmdPal.Common.csproj
index 5f83ca54e1..0112da1b0b 100644
--- a/src/modules/cmdpal/Microsoft.CmdPal.Common/Microsoft.CmdPal.Common.csproj
+++ b/src/modules/cmdpal/Microsoft.CmdPal.Common/Microsoft.CmdPal.Common.csproj
@@ -1,4 +1,4 @@
-
+
diff --git a/src/modules/cmdpal/Microsoft.Terminal.UI/Microsoft.Terminal.UI.vcxproj b/src/modules/cmdpal/Microsoft.Terminal.UI/Microsoft.Terminal.UI.vcxproj
index a3c282b7f1..43c890dd31 100644
--- a/src/modules/cmdpal/Microsoft.Terminal.UI/Microsoft.Terminal.UI.vcxproj
+++ b/src/modules/cmdpal/Microsoft.Terminal.UI/Microsoft.Terminal.UI.vcxproj
@@ -1,9 +1,9 @@
-
+
..\..\..\..\
- $(PathToRoot)packages\Microsoft.WindowsAppSDK.1.7.250401001
+ $(PathToRoot)packages\Microsoft.WindowsAppSDK.1.7.250513003
diff --git a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/Microsoft.CommandPalette.Extensions.vcxproj b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/Microsoft.CommandPalette.Extensions.vcxproj
index e7d8875326..5383686a55 100644
--- a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/Microsoft.CommandPalette.Extensions.vcxproj
+++ b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/Microsoft.CommandPalette.Extensions.vcxproj
@@ -1,8 +1,8 @@
-
+
..\..\..\..\..\
- $(PathToRoot)packages\Microsoft.WindowsAppSDK.1.7.250401001
+ $(PathToRoot)packages\Microsoft.WindowsAppSDK.1.7.250513003
$(PathToRoot)packages\Microsoft.Windows.CppWinRT.2.0.240111.5
$(PathToRoot)packages\Microsoft.Windows.SDK.BuildTools.10.0.22621.2428
$(PathToRoot)packages\Microsoft.Web.WebView2.1.0.2903.40
diff --git a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/packages.config b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/packages.config
index 608661db25..6a27f0cdda 100644
--- a/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/packages.config
+++ b/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions/packages.config
@@ -3,5 +3,5 @@
-
+
\ No newline at end of file
diff --git a/src/modules/peek/Peek.UI/Peek.UI.csproj b/src/modules/peek/Peek.UI/Peek.UI.csproj
index 673ff5c9e7..070d9d2ef2 100644
--- a/src/modules/peek/Peek.UI/Peek.UI.csproj
+++ b/src/modules/peek/Peek.UI/Peek.UI.csproj
@@ -1,4 +1,4 @@
-
+
diff --git a/src/modules/powerrename/PowerRenameUILib/PowerRenameUI.vcxproj b/src/modules/powerrename/PowerRenameUILib/PowerRenameUI.vcxproj
index 806da3904b..e124c83726 100644
--- a/src/modules/powerrename/PowerRenameUILib/PowerRenameUI.vcxproj
+++ b/src/modules/powerrename/PowerRenameUILib/PowerRenameUI.vcxproj
@@ -1,6 +1,6 @@
-
+
@@ -207,7 +207,7 @@
-
+
@@ -221,8 +221,8 @@
-
-
+
+
diff --git a/src/modules/powerrename/PowerRenameUILib/packages.config b/src/modules/powerrename/PowerRenameUILib/packages.config
index 77b75fad7e..268846b6a0 100644
--- a/src/modules/powerrename/PowerRenameUILib/packages.config
+++ b/src/modules/powerrename/PowerRenameUILib/packages.config
@@ -6,5 +6,5 @@
-
+
\ No newline at end of file