Repository navigation
build: bump Microsoft.WindowsAppSDK 2.2.0 to 2.4.0, WinUI 2.2.1 to 2.3.6 (#1089) - #1090
Merged
Merged
Conversation
deblasis
force-pushed
the
claude/nuget-lock-files
branch
from
September 11, 2026 06:29
65ac0ed to
0e5c377
Compare
…3.6 (#1089) The metapackage pin moves to 2.4.0 and the lock regenerates from a force-evaluate restore of the solution plus the three helper projects. Every component lands exactly on the 2.4.0 nuspec floor, nothing above: WinUI 2.3.6, Runtime [2.4.0], Foundation 2.3.9, AI 2.4.4, InteractiveExperiences 2.1.6, ML 2.1.74, and the new Search 2.4.4. Base 2.0.4, DWrite 2.1.0 and Widgets 2.0.5 are unchanged. Search is new in 2.4.0 and the app does not use it; its cost in the publish output is measured and decided separately.
deblasis
force-pushed
the
claude/wasdk-2.4
branch
from
September 11, 2026 06:45
04ec5e4 to
15e5467
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #1087 (branched from its branch; the lock files are what makes this bump a reviewable diff instead of an invisible float). Rebase onto
windowsfollows once that lands. Founder decision for the next release: WinUI 2.3.6.What and why
Microsoft.WindowsAppSDKmoves 2.2.0 -> 2.4.0. The bump is one csproj line plus the regeneratedpackages.lock.json: every restore on the ladder is locked, so the pin change is refused until the lock is regenerated, and the lock diff is the whole review surface.Lock diff
Every component lands exactly on the 2.4.0 nuspec floor, nothing above it (NuGet's lowest-applicable rule):
Search component decision: keep it
Search 2.4.4 is new in the metapackage and the app does not use it. It adds exactly two files to the self-contained payload:
Microsoft.Windows.Search.dll(3,379,512 B) andMicrosoft.Windows.Search.winmd(40,248 B) = 3,419,760 bytes. The managed projection dll is trimmed away entirely under NativeAOT.It is kept because there is no supported and documented way to exclude one component: the metapackage is all-or-nothing, and
MicrosoftWindowsAppSDKFilesExcludedis an undocumented Remove hook inside Base's self-contained targets (nothing on learn.microsoft.com or in the WindowsAppSDK repo documents it). Using it anyway would leave Search'spackage.appxfragmentfeeding the generated SxS manifest, so the app manifest would carry activatableClass entries for a dll that is not shipped - the same class of latent activation failure this release is guarding against, bought for 3.4 MB. Swapping the metapackage for a hand-rolled per-component reference list is documented granularity but rewrites the whole dependency shape; that would be its own change if it is ever wanted.Build breaks: none in source
Debug and Release solution builds are clean against 2.4.0 with zero errors and no new warning classes (the standing CS8602/CS8604/CS0105/CA1416/WMC1510/IL2xxx set is unchanged). CsWinRT1028 (the one warning promoted to error) stays silent. The NativeAOT publish is also clean - two publish-time failures seen while verifying are NOT product breaks and need no code change:
error CS0759 ... _XamlGeneratedCreateApplicationInstancefires only in a warm obj that still holds 2.2.1-era.g.i.csfiles next to freshly generated 2.3.6 ones (XamlCompiler 3.0.0.2606 vs 2608): the new.g.cshas the implementing declaration, the stale.g.i.cslacks the defining one. A cleanwindows/Ghostty/obj(or any fresh checkout, which is what CI and the tiers build) is unaffected. Adding the defining declaration to App.xaml.cs is NOT a fix: on a clean tree the generated file already provides it and a second one is CS0755. Clean your obj once after pulling this bump.error MSB3073 ... 'vswhere.exe' is not recognizedis the known ILC/findvcvarsall environment issue (NoDefaultCurrentDirectoryInExePath in pwsh/bash); the release build already ships a vswhere-on-path helper script for it. Dot-source that before publishing.Also worth recording:
dotnet publish -r win-x64 /p:RestoreLockedMode=true(restore-in-publish, locked) fails NU1004 because the committed locks record no runtime identifiers - pre-existing #1087 shape, unchanged by 2.4.0. The working sequence is the one release-smoke.ps1 uses: restore first, then publish--no-restore.Insights dll (#1088): still missing, #1088 stays
microsoft/WindowsAppSDK#6725 merged 2026-09-03, after 2.4.0 shipped. Verified on this bump: the self-contained NativeAOT publish output contains zero Insights-named files;
Microsoft.WindowsAppRuntime.Insights.Resource.dllexists only inside the framework MSIX (tools/MSIX/win10-x64/Microsoft.WindowsAppRuntime.2.msix), exactly as in 2.2.0. #1088 is still needed and is NOT droppable. No conflict with this branch: #1088's full diff applies cleanly on this head (verified with git apply --check), its csproj block inserts ~400 lines away from the version pin, and it reads the version-independent$(PkgMicrosoft_WindowsAppSDK_Runtime)property, so it keeps working under 2.4.0 as-is.Publish size delta vs 2.2.0
Same tree, same zig-out, both published NativeAOT win-x64 Release:
Test plan
just signoffgreen at the exact head (release-gate + windows-tests, locked restore included).All green at head
04ec5e45c:just signoffPASS (release-gate 89.6s, windows-tests 282.2s, locked restore and lock drift gate included;signoff/ladder successadvertised on the commit). AOT launch smoke up at 5s; dialogs fuzz alive with the palette invoked repeatedly, crashGrew=false, all checks true; shader-notice-fuzz clean (positive case raised the banner, reasons=load); screenshots show attached rendering panes; app log tail Info/Warn only, zero Error/Crit.Closes #1089