Repository navigation
fix(sdk): Accept the Windows platform version of the target framework - #25677
Merged
MartinZikmund merged 1 commit intoNov 5, 2026
Conversation
The .NET SDK validates the Windows platform version of the target framework against a list that it ships, and fails with NETSDK1140 for a newer one (dotnet/sdk#55834). Uno.Sdk already adds the platform version to SdkSupportedTargetPlatformVersion for the desktop and browserwasm targets; do the same for the Windows target, so that net10.0-windows10.0.28000 builds together with WindowsSdkPackageVersion 10.0.28000.87. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
MartinZikmund
approved these changes
Oct 26, 2026
Member
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
MartinZikmund
enabled auto-merge
October 26, 2026 01:25
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Contributor
|
The build 241294 found UI Test snapshots differences: Details
|
Contributor
|
|
Contributor
Author
|
@MartinZikmund thanks for the approval! The
The jobs that exercise the Windows target ( Could you please run |
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 #25676
PR Type:
🐞 Bugfix
What changed? 🚀
net10.0-windows10.0.28000fails withNETSDK1140because the .NET SDK (10.0.402 and 11.0.100-rc.2) only knows Windows platform versions up to 10.0.26100 (dotnet/sdk#55834). Uno.Sdk already adds the platform version toSdkSupportedTargetPlatformVersionfornet10.0-desktopandnet10.0-browserwasm, but not for the Windows target.This PR adds the platform version of the target framework to
SdkSupportedTargetPlatformVersioninUno.Common.WinAppSdk.targets. WithWindowsSdkPackageVersionset to10.0.28000.87(it selects the Windows SDK projection package),net10.0-windows10.0.28000builds. The item changes nothing for versions the .NET SDK already knows, and it can stay once the .NET SDK adds 28000.Validated by hand with a local repack of Uno.Sdk 6.7.30 carrying this change and a minimal single-project app on .NET SDK 10.0.402:
net10.0-windows10.0.28000withWindowsSdkPackageVersion10.0.28000.87 and no workaround in the project: passes NETSDK1140 and NETSDK1073 (the unpatched package stops with NETSDK1140)net10.0-windows10.0.26100: unchangedPR Checklist ✅
Screenshots Compare Test Runresults.🤖 Generated with Claude Code