Repository navigation
fix(sdk): Use the WinRT.Runtime 2.3 projection on Windows targets - #25836
Merged
MartinZikmund merged 1 commit intoNov 5, 2026
Merged
MartinZikmund merged 1 commit into
MartinZikmund merged 1 commit into
Conversation
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Contributor
|
|
ajpinedam
approved these changes
Oct 29, 2026
Contributor
Author
|
/azp run |
|
Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command. |
ramezgerges
force-pushed
the
dev/rara/winsdk-projection-revision
branch
from
November 2, 2026 15:09
0f2f73b to
a052162
Compare
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
MartinZikmund
approved these changes
Nov 2, 2026
ramezgerges
enabled auto-merge
November 2, 2026 16:39
Contributor
|
|
ramezgerges
force-pushed
the
dev/rara/winsdk-projection-revision
branch
from
November 3, 2026 16:55
a052162 to
0dfa38d
Compare
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Member
|
@Mergifyio backport release/stable/7.0 |
Contributor
✅ Backports have been createdDetails
|
ramezgerges
force-pushed
the
dev/rara/winsdk-projection-revision
branch
from
November 4, 2026 18:21
0dfa38d to
b724b72
Compare
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 unoplatform#24905 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
MartinZikmund
disabled auto-merge
November 5, 2026 09:25
1 of 5 tasks
This was referenced Nov 5, 2026
Closed
fix(build): Build net10.0 Windows assets against WinRT.Runtime 2.2.0
unoplatform/uno.toolkit.ui#1691
Closed
agneszitte
added a commit
to unoplatform/Uno.Themes
that referenced
this pull request
Nov 9, 2026
Uno.Sdk 7.0.29 sets WindowsSdkPackageMinimumRevision to 87 (unoplatform/uno#25836), the same 10.0.19041.87 projection this block selected. Setting WindowsSdkPackageVersion as well fails with NETSDK1230 (unoplatform/uno#26174).
This was referenced Nov 9, 2026
1 of 2 tasks
This was referenced Nov 10, 2026
Merged
2 of 5 tasks
MartinZikmund
pushed a commit
to ramezgerges/uno
that referenced
this pull request
Nov 10, 2026
Since unoplatform#25836 the Uno.Sdk sets WindowsSdkPackageMinimumRevision to 87 on Windows targets, even when the project already picked WindowsSdkPackageVersion. The .NET SDK rejects both together, so every such project failed with NETSDK1230. The default now applies only when the project picked no version.
MartinZikmund
pushed a commit
to ramezgerges/uno
that referenced
this pull request
Nov 10, 2026
Uno.Sdk 7.0 sets WindowsSdkPackageMinimumRevision (unoplatform#25836), so a project that still sets WindowsSdkPackageVersion fails with NETSDK1230 (unoplatform#26174), and a .57 projection, as the 6.0 migration guide suggested, fails with CS1705. Documents it in the 7.0 migration guide (section, checklist, error lookup) and on the pages that set it.
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