Repository navigation
fix(sdk): Use the WinRT.Runtime 2.3 projection on Windows targets (backport #25836) - #26084
Closed
mergify[bot] wants to merge 1 commit into
Closed
mergify[bot] wants to merge 1 commit into
mergify[bot] wants to merge 1 commit into
Conversation
Uno's Windows assemblies, and the Hot Design client a Debug build references, are built against the .87 Windows SDK projection (WinRT.Runtime 2.3). The .NET 10 SDK gives apps and libraries .57 (WinRT.Runtime 2.2), so their Windows head failed with CS1705. The Uno.Sdk now sets WindowsSdkPackageMinimumRevision to 87, which raises an older default and keeps each target framework's Windows SDK build, without lowering what a newer .NET SDK picks. Fixes #24905 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> (cherry picked from commit b724b72)
1 of 5 tasks
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
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.
GitHub Issue: closes #24905
PR Type:
🐞 Bugfix
What changed? 🚀
A fresh app's Windows head fails to build with the .NET 10 SDK:
Cause
WinRT.Runtimecomes from the Windows SDK projection targeting pack,Microsoft.Windows.SDK.NET.Ref. The .NET SDK adds it implicitly for-windows10.0.xtarget frameworks and picks one exact version from its own bundled data; a package can't ask for a newer one (a nuspec framework reference has no version)..87projection revision (WinRT.Runtime2.3). The .NET 10 SDK (10.0.302 and 10.0.401) gives apps and libraries.57(WinRT.Runtime2.2). The .NET 11 SDK already defaults to.87.Fix (
Uno.Common.WinAppSdk.targets, so both apps and class libraries get it)WindowsSdkPackageMinimumRevisionto87unless the project sets it. This is the .NET SDK's own setting:.87and never lowers a newer one;10.0.26100.87,10.0.19041.87, …), so it doesn't pin one package version as the issue's workaround does;WindowsSdkPackageVersion, or a project's own minimum, still overrides it.Validation (.NET SDK 10.0.302, fresh template projects, no workaround; this targets file swapped into the published Uno.Sdk
7.0.0-dev.113, whose copy matches master):unoapp -preset blank -platforms windows, DebugCS1705onUno.UI.HotDesign.Client, thenWMC999910.0.26100.87unolib,net10.0-windows10.0.2610010.0.26100.87Checked directly against the .NET SDK:
WindowsSdkPackageMinimumRevision=87resolves10.0.26100.87, while a minimum of40leaves its default10.0.26100.57. The apps were built, not launched.PR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code
This is an automatic backport of pull request #25836 done by [Mergify](https://mergify.com).