Upgrade Microsoft.WindowsAppSDK to 2.4.0 - #16400
Conversation
There was a problem hiding this comment.
Pull request overview
Upgrades the default Windows App SDK dependency to 2.4.0 across React Native Windows projects.
Changes:
- Sets
WinUI3Versionto 2.4.0. - Regenerates NuGet lockfiles and transitive dependencies.
- Adds release change records.
Reviewed changes
Copilot reviewed 21 out of 21 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
vnext/ReactCommon.UnitTests/packages.lock.json |
Updates test dependencies. |
vnext/PropertySheets/WinUI.props |
Sets the default SDK version. |
vnext/Mso.UnitTests/packages.lock.json |
Updates Mso test dependencies. |
vnext/Microsoft.ReactNative/packages.lock.json |
Updates core library dependencies. |
vnext/Microsoft.ReactNative.IntegrationTests/packages.lock.json |
Updates integration-test dependencies. |
vnext/Microsoft.ReactNative.Cxx.UnitTests/packages.lock.json |
Updates C++ test dependencies. |
vnext/Microsoft.ReactNative.CsWinRT/packages.lock.json |
Updates CsWinRT dependencies. |
vnext/Desktop/packages.lock.json |
Updates Desktop dependencies. |
vnext/Desktop.UnitTests/packages.lock.json |
Updates Desktop unit-test dependencies. |
vnext/Desktop.IntegrationTests/packages.lock.json |
Updates Desktop integration dependencies. |
vnext/Desktop.DLL/packages.lock.json |
Updates Desktop DLL dependencies. |
packages/sample-custom-component/windows/SampleCustomComponent/packages.lock.json |
Updates sample dependencies. |
packages/sample-app-fabric/windows/SampleAppFabric/packages.lock.json |
Updates Fabric sample dependencies. |
packages/playground/windows/playground-composition/packages.lock.json |
Updates Playground dependencies. |
packages/e2e-test-app-fabric/windows/RNTesterApp-Fabric/packages.lock.json |
Updates E2E app dependencies. |
packages/@react-native-windows/automation-channel/windows/AutomationChannel/packages.lock.json |
Updates automation-channel dependencies. |
change/react-native-windows-a2579388-59f6-4618-8629-114b10dfe1ba.json |
Adds the RNW change record. |
change/@react-native-windows-automation-channel-3aa23ca2-2bfe-4418-bda5-c1897292c696.json |
Adds the automation-channel change record. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| <!-- This value is also used by the CLI, see /packages/@react-native-windows/cli/.../autolinkWindows.ts --> | ||
| <WinUI3Version Condition="'$(WinUI3Version)'=='' AND '$(UseExperimentalWinUI3)'=='true'">$(WinUI3ExperimentalVersion)</WinUI3Version> | ||
| <WinUI3Version Condition="'$(WinUI3Version)'==''">1.8.260508005</WinUI3Version> | ||
| <WinUI3Version Condition="'$(WinUI3Version)'==''">2.4.0</WinUI3Version> |
1212a22 to
129e2c1
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 34 out of 34 changed files in this pull request and generated no new comments.
Suppressed comments (1)
vnext/PropertySheets/WinUI.props:13
- The Desktop integration-test setup still installs Windows App Runtime
1.8.260508005(.ado/jobs/desktop-single.yml:39-50), even though its own comment requires this value to matchWinUI3Version. Builds now target 2.4.0, so framework-dependent test apps may fail to launch or continue testing against the wrong installed runtime. Update the installer URL and output filename to the 2.4.0 x64 runtime as part of this upgrade.
…talA (experimental) Also removes a stale ARM64EC override in vnext/Directory.Build.targets that forced Ixp-Platform=win10-x64 for Microsoft.WindowsAppSDK.InteractiveExperiences. Older versions of that package shipped native libs under win10-<arch> folders, but the version pulled in transitively by this upgrade (2.1.6) now ships plain <arch> folders (x64/arm64/arm64ec/x86), including a genuine arm64ec folder. The stale override caused LNK1181 failures when linking Desktop.DLL for ARM64EC/Release in CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
129e2c1 to
40c72d5
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 35 out of 35 changed files in this pull request and generated no new comments.
Suppressed comments (1)
vnext/PropertySheets/WinUI.props:13
- The Desktop CI setup still installs Windows App Runtime
1.8.260508005in.ado/jobs/desktop-single.yml:39-50, whose comment requires it to match this property. Projects now target 2.4.0 and disable SDK auto-initialization below, so clean test agents can fail to launch the Desktop unit/integration binaries without the 2.4 runtime. Update that installer step to the corresponding 2.4 runtime as part of this upgrade.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 35 out of 35 changed files in this pull request and generated no new comments.
Suppressed comments (1)
vnext/PropertySheets/WinUI.props:13
- The desktop CI template still installs Windows App SDK runtime 1.8.260508005 (
.ado/jobs/desktop-single.yml:39-50), even though its comment requires this value to matchWinUI3Version. Desktop tests now build against 2.4.0 and are not configured as self-contained, so they can fail to load the required runtime on a clean agent. Update that installer URL to the matching 2.4.0 x64 runtime as part of this version bump.
Description
Updating the WinAppSdk to 2.4.0
Type of Change
What
Updated WinAppSdk's version
Testing
Tested in playground working fine
Changelog
Should this change be included in the release notes: yes
Update WinAppSdk to 2.4.0.
Microsoft Reviewers: Open in CodeFlow