Skip to content

fix(sdk): Accept the Windows platform version of the target framework - #25677

Merged
MartinZikmund merged 1 commit into
unoplatform:masterfrom
xperiandri:dev/xperiandri/20261024/windows-platform-version
Nov 5, 2026
Merged

MartinZikmund merged 1 commit into
unoplatform:masterfrom
xperiandri:dev/xperiandri/20261024/windows-platform-version

Conversation

@xperiandri

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #25676

PR Type:

🐞 Bugfix

What changed? 🚀

net10.0-windows10.0.28000 fails with NETSDK1140 because 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 to SdkSupportedTargetPlatformVersion for net10.0-desktop and net10.0-browserwasm, but not for the Windows target.

This PR adds the platform version of the target framework to SdkSupportedTargetPlatformVersion in Uno.Common.WinAppSdk.targets. With WindowsSdkPackageVersion set to 10.0.28000.87 (it selects the Windows SDK projection package), net10.0-windows10.0.28000 builds. 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.28000 with WindowsSdkPackageVersion 10.0.28000.87 and no workaround in the project: passes NETSDK1140 and NETSDK1073 (the unpatched package stops with NETSDK1140)
  • net10.0-windows10.0.26100: unchanged

PR Checklist ✅

🤖 Generated with Claude Code

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

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@unodevops

Copy link
Copy Markdown
Contributor

🤖 Your WebAssembly Sample App stage site is ready! Visit it here:

@nventive-devops

Copy link
Copy Markdown
Contributor

The build 241294 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 2458

Details
  • skia-linux-screenshots: 118 changed over 2458

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ClipboardTests.png-dark
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • Buttons.png-dark
    • Buttons.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • Examples.png
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • ImageBrushAlignmentXY.png-dark
    • ImageBrushAlignmentXY.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
  • skia-windows-screenshots: 2458 changed over 2490

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • Accessibility_ScreenReader.png
    • ApplicationViewMode.png-dark
    • AppWindowClosing.png-dark
    • AppWindowPresenters.png-dark
    • ArcSegment.png-dark
    • Attributed_text_Supserscript.png-dark
    • AutoBorderStretchwithleftmargin.png-dark
    • AutomationPropertiesExtensions_Role.png-dark
    • AutoSizedPathCentered.png
    • AutoSizedTopLeft.png-dark
    • AutoSuggestBox_SoftKeboard.png-dark
    • AutoSuggestBox_SoftKeboard.png
    • Basics_Automated.png-dark
    • Basics_Automated.png
    • BezierSegment.png-dark
    • BezierSegment.png
    • BitmapImage_vs_SvgImageSource.png-dark
    • BitmapImage_vs_SvgImageSource.png
    • BorderLeftwithmargins.png-dark
    • BorderLeftwithmargins.png

@unodevops

Copy link
Copy Markdown
Contributor

⚠️⚠️ The build 241294 has failed on Uno.UI - CI.

@xperiandri

Copy link
Copy Markdown
Contributor Author

@MartinZikmund thanks for the approval!

The Uno.UI - CI run (build 241294) is red only because of infrastructure failures that are unrelated to this change:

  • both Android sample builds (Tests - Android and Tests - Android+NativeAOT) stop in uno-check with Checkup had Error status: openjdk;
  • Tests - iOS Skia Runtime Tests 0 lost its first run to UNOBLD006 (the simulator did not report a completed boot within 480s); the re-run reported that all tests passed, but publishing still found 2 failed tests in the original results file.

The jobs that exercise the Windows target (WinAppSDK Build Samples App and WinAppSDK Runtime Tests) are green, and the branch merges cleanly with the current master.

Could you please run /azp run again so that auto-merge can go through?

@MartinZikmund
MartinZikmund merged commit fef6443 into unoplatform:master Nov 5, 2026
44 of 48 checks passed
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.

Uno.Sdk: net10.0-windows10.0.28000 fails with NETSDK1140 until the .NET SDK knows 10.0.28000

4 participants