Skip to content

Update Windows App SDK compile dependency to 2.5.1 - #39440

Closed
mattleibow wants to merge 1 commit into
mainfrom
mattleibow-update-maui-winappsdk
Closed

mattleibow wants to merge 1 commit into
mainfrom
mattleibow-update-maui-winappsdk

Conversation

@mattleibow

Copy link
Copy Markdown
Member

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description of Change

Update the central Microsoft.WindowsAppSDK compile dependency for the current .NET 10 MAUI branch from 1.8.260529003 to 2.5.1, the latest officially supported Stable/Current Windows App SDK release as of October 18, 2026 (downloads, release notes).

This changes the Windows App SDK package used to compile MAUI and the dependency consumed by Windows applications. It does not change the .NET target or raise the app runtime OS minimum: SupportedOSPlatformVersion and TargetPlatformMinVersion remain 10.0.17763.0 (Windows 10 version 1809). Windows App SDK 2 continues to support that OS baseline (supported Windows releases). Applications consuming the updated dependency will use the corresponding Windows App Runtime; this is not a claim that the Windows App Runtime version or behavior remains unchanged.

The one-line central pin flows through eng/NuGetVersions.targets to the existing Windows consumers. No dependency-flow configuration changes are needed; this package group is maintained by Dependabot, and the existing Version.Details.xml placeholder is unchanged.

Checked coupled dependencies against the published NuGet manifests:

  • Keep Windows SDK BuildTools 10.0.26100.8249: it already exceeds the 10.0.26100.4654 minimum required by Windows App SDK Base 2.0.4.
  • Keep Win2D 1.4.0: it is the latest available release, and its WinUI dependency resolves alongside Windows App SDK 2.5.1 to WinUI 2.3.9 without conflicts.
  • Keep WebView2 1.0.4258.31: it already exceeds WinUI's 1.0.3719.77 minimum.

Validation:

  • git diff --check — passed.
  • dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 --include eng/Versions.props --verbosity quiet — passed; no additional changes.
  • dotnet msbuild src/Core/src/Core.csproj -p:EnableWindowsTargeting=true -p:TargetFramework=net10.0-windows10.0.19041.0 -getProperty:MicrosoftWindowsAppSDKPackageVersion,SupportedOSPlatformVersion,TargetPlatformMinVersion — passed; reports 2.5.1, 10.0.17763.0, and 10.0.17763.0. The equivalent Graphics.Win2D evaluation also passed.
  • dotnet restore src/Graphics/src/Graphics.Win2D/Graphics.Win2D.csproj --configfile <temporary-dotnet-public-NuGet.Config> -p:EnableWindowsTargeting=true -p:TargetFrameworks=net10.0-windows10.0.19041.0 -p:NuGetAudit=false --verbosity normal — passed with zero warnings/errors; the assets file resolves Windows App SDK 2.5.1 and WinUI 2.3.9. Used a temporary public-feed-only NuGet configuration because direct api.nuget.org access failed; no repository feed changes.
  • Isolated .NET SDK 10.0.401 project importing the repository's eng/Versions.props and eng/NuGetVersions.targets, referencing Windows App SDK, BuildTools, Win2D, and WebView2: NUGET_CERT_REVOCATION_MODE=offline dotnet restore WindowsDependencyRestore.csproj --configfile NuGet.Config --packages ./packages --verbosity normal -p:WarningsAsErrors=NU1605 — passed with zero warnings/errors using dotnet-public. Confirmed the resolved graph contains all four central pins and WinUI 2.3.9.
  • dotnet build WindowsDependencyRestore.csproj --no-restore --verbosity minimal — blocked on macOS: the Windows-only XamlCompiler.exe cannot execute. Windows compilation/runtime testing remains required on Windows.
  • dotnet build ./Microsoft.Maui.BuildTasks.slnf --no-restore --verbosity minimal — failed because this clean worktree lacks restored prerequisite assets and .NET Framework 4.7.2 reference assemblies. dotnet build src/Graphics/src/Graphics.Win2D/Graphics.Win2D.csproj -f net10.0-windows10.0.19041.0 -p:EnableWindowsTargeting=true --no-restore --verbosity quiet was also blocked by the referenced Graphics project's missing net10.0 restore target under the Windows-only restore override. No full MAUI Windows build or runtime test is claimed.

Issues Fixed

N/A — dependency maintenance requested by the maintainer; no linked issue.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a8ef892d-cbcb-44f9-a088-7542b45c9a41
Copilot AI balanced review requested due to automatic review settings October 17, 2026 23:25
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39440

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39440"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The major dependency upgrade still needs successful Windows compilation and runtime validation before human approval.

No open issues 🎉

What changed in this PR

Updates MAUI’s central Windows App SDK dependency from 1.8.260529003 to 2.5.1.

Changes:

  • Updates the package pin used by Windows consumers.
  • Leaves companion dependency pins and minimum Windows OS settings unchanged.
File Description
eng/​Versions.props Updates the Windows App SDK package version to 2.5.1.

Review effort: Balanced

@mattleibow

Copy link
Copy Markdown
Member Author

Closing this update following the corrected baseline decision: the intended baseline is MAUI 10's existing Windows App SDK 1.8 compile dependency, and SkiaSharp should match that baseline. No MAUI dependency update or net11.0 retargeting is needed. The feature branch is retained.

@mattleibow mattleibow closed this Oct 17, 2026
kubaflo added a commit that referenced this pull request Oct 18, 2026
<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Description of Change

<!-- Enter description of the fix in this section -->

**Intentional branch exception: this PR targets `net11.0` only. It does
not change `main` or MAUI 10.**

Update only the central dependency pins in `eng/Versions.props`:

- `MicrosoftWindowsAppSDKPackageVersion`: `2.3.1` → `2.5.1`.
- `MicrosoftWindowsSDKBuildToolsPackageVersion`: `10.0.28000.2526` →
`10.0.28000.2705`.
- `MicrosoftWindowsSDKBuildToolsWinAppPackageVersion`: `0.5.0` →
`0.7.1`.
- `MicrosoftWindowsWebView2PackageVersion`: `1.0.4078.44` →
`1.0.4258.31`.

All four versions were confirmed as the latest stable entries in the
official NuGet flat-container indexes on 2026-10-18. Win2D remains at
the current stable `1.4.0`; CsWin32 and Windows SDK reference-pack
overrides are unchanged.

Supersedes #39440, which remains closed because it was based on `main`.
This replacement starts directly from `net11.0` commit
`f7147e3410c048631950556da69a1ab005b6d55f`, preserving clean net11
ancestry without rewriting or retargeting the old branch.

Validation on macOS (installed .NET SDK `11.0.100-rc.1.26425.128`;
repository's requested SDK is `11.0.100-rtm.26514.118`):

- `dotnet msbuild src/Core/src/Core.csproj
-p:TargetFramework=net11.0-windows10.0.19041.0
-p:EnableWindowsTargeting=true
-getProperty:MicrosoftWindowsAppSDKPackageVersion,MicrosoftWindowsSDKBuildToolsPackageVersion
-getItem:PackageReference` — **passed** for the initial Windows App SDK
and BuildTools update; evaluated Windows PackageReference items use both
requested versions.
- `dotnet msbuild src/Core/src/Core.csproj
-p:TargetFramework=net11.0-windows10.0.19041.0
-p:EnableWindowsTargeting=true
-getProperty:MicrosoftWindowsSDKBuildToolsWinAppPackageVersion,MicrosoftWindowsWebView2PackageVersion
-getItem:PackageReference` — **passed** for the follow-up WinApp and
WebView2 update; evaluated Windows PackageReference items use `0.7.1`
and `1.0.4258.31`.
- `dotnet restore src/Core/src/Core.csproj
-p:TargetFrameworks=net11.0-windows10.0.19041.0
-p:EnableWindowsTargeting=true --verbosity minimal` — **passed** on both
updates for the Core/Essentials/Graphics/Graphics.Win2D graph. Restored
assets confirm Windows App SDK `2.5.1`, Windows SDK BuildTools
`10.0.28000.2705`, WinApp `0.7.1`, and WebView2 `1.0.4258.31` in Core;
Essentials also resolves WebView2 `1.0.4258.31`.
- `dotnet build src/Core/src/Core.csproj --no-restore
-p:TargetFrameworks=net11.0-windows10.0.19041.0
-p:EnableWindowsTargeting=true --verbosity minimal` — **blocked by host
platform** on the initial update: Graphics produced its managed
assembly, then Windows resource generation failed with MSB6003 / `Exec
format error` launching `MakePri.exe` on macOS. A complete native
Windows build and runtime/UI validation were not performed; the native
build was not repeated for the follow-up pins.
- `dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src
--exclude-diagnostics CA1822 --include eng/Versions.props --verbosity
quiet` — **passed** on both updates, no further changes.
- `git diff --check` — **passed** on both updates.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

N/A — dependency update; supersedes #39440 rather than fixing a
separately filed issue.

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — fe86e0ea Deployed Oct 17, 2026 by mattleibow via conclusion #2382
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants