Skip to content

chore: Update to .NET 11 rc.2 - #25492

Merged
jonpryor merged 11 commits into
masterfrom
dev/jonpryor/jonp-try-net11-rc2
Oct 27, 2026
Merged

jonpryor merged 11 commits into
masterfrom
dev/jonpryor/jonp-try-net11-rc2

Conversation

@jonpryor

Copy link
Copy Markdown
Contributor

Fixes: #22745

Context: #22745
Context: 87f0e11

Update version numbers accordingly.

To sanity-check locally, try:

\cp build/ci/net11/_global.json global.json

dotnet build -f net11.0-ios27.0 src/Uno.Foundation/Uno.Foundation.netcoremobile.csproj
dotnet build -f net11.0 src/Uno.UI/Uno.UI.csproj
dotnet publish -f net11.0-android -p:UnoTargetFrameworkOverride=net11.0-android src/SamplesApp/SamplesApp/SamplesApp.csproj -p:UNO_DISABLE_ANALYZERS_IN_SAMPLES=true
dotnet publish -f net11.0-android -p:UnoTargetFrameworkOverride=net11.0-android src/SamplesApp/SamplesApp/SamplesApp.csproj -p:ApplicationId=uno.platform.samplesapp.skia.nativeaot -p:SkiaPublishAot=true -p:SkiaSharpVersion=4.151.1
dotnet build -c Release -f net11.0-ios -p:UnoTargetFrameworkOverride=net11.0-ios src/SamplesApp/SamplesApp/SamplesApp.csproj

Note: when updating _Dotnet.cs, the version value in new PackageIdentity(id, version) must match the filesystem path underneath packs/Microsoft.NETCore.App.Ref, which may not match the output of dotnet --version. Check the filesystem! This is also true for Microsoft.Android.Ref.37.

Address a CS0618 obsoletion warning from Configuration.Locale:

src/Uno.WinRT/Globalization/ApplicationLanguages.cs(132,16): error CS0618: 'Configuration.Locale' is obsolete: 'deprecated'

Use config?.Locales?.Get(0) instead.

Note: Android+NativeAOT now builds, unlike with rc.1 and 87f0e11. Keep the workaround in place for now, in case customers attempt to use new Uno packages with older .NET installs. We should remove this workaround in the future, certainly before .NET 12 RTM.

GitHub Issue: closes #

PR Type:

What changed? 🚀

PR Checklist ✅

@github-actions github-actions Bot added area/code-generation Categorizes an issue or PR as relevant to code generation area/build Categorizes an issue or PR as relevant to build infrastructure area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Oct 14, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from 5d18c32 to a9fefc5 Compare October 15, 2026 23:33
@github-actions github-actions Bot added the platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform label Oct 15, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from a9fefc5 to d7e3aa6 Compare October 16, 2026 14:44
@github-actions github-actions Bot added platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia labels Oct 16, 2026
@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

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

1 similar comment
@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

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

opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-unoplatform__uno that referenced this pull request Oct 16, 2026
MessagePack 3.1.7 fails the NuGet audit (NU1902) since the advisory was
published, which breaks restore on every CI build. 3.1.9 is the first
patched 3.1.x; 3.1.12 is the latest, and the version unoplatform#25492 also moves to.

Closes unoplatform#25532

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from a5008df to 6274d68 Compare October 19, 2026 17:42
@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from 6274d68 to 24990cd Compare October 20, 2026 18:37
@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from 24990cd to d97829b Compare October 20, 2026 19:43
@github-actions github-actions Bot added the area/automation Categorizes an issue or PR as relevant to project automation label Oct 20, 2026
Context: #25659

With either the adoption of .NET 11 rc.2 *or* the adoption of
macOS 27 + Xcode 27 + arm64 -- needed to support .NET 11 iOS 27
bindings -- the tvOS test stages are failing:

	2026-10-22T22:41:49.2952660Z Capping the 5400s wait to 4717s, keeping 600s for publishing before the job timeout
	2026-10-22T22:41:49.2954700Z Waiting for /tmp/TestResult-20261022224147.xml to be available...
	2026-10-22T22:42:04.4707070Z The app is not running anymore
	2026-10-22T22:42:04.4709880Z The file /tmp/TestResult-20261022224147.xml is not available, waiting 2 seconds
	2026-10-22T22:42:06.5644740Z The file /tmp/TestResult-20261022224147.xml is not available, the test run has timed out.
	2026-10-22T22:42:06.5779860Z cp: /Users/runner/work/1/s/build/TestResult-original.xml: No such file or directory

Disable the tvOS stages for now.  Fixing them will be tracked at
issue #25659.
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from c3b32a2 to f4e733b Compare October 27, 2026 10:43
@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from f4e733b to cfedf49 Compare October 27, 2026 11:30
@nventive-devops

Copy link
Copy Markdown
Contributor

The build 241639 found UI Test snapshots differences: skia-linux-screenshots: 118, skia-windows-screenshots: 174

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

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

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • ClipboardTests.png-dark
    • ClipboardTests.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • ColorPickerSample.png-dark
    • ColorPickerSample.png
    • Buttons.png
    • GridWithColumnSpan.png-dark
    • GridWithColumnSpan.png
    • Grid_Auto_Center_Cell.png-dark
    • Grid_Auto_Center_Cell.png
    • Grid_Auto_Text_Block_Trimming.png-dark
    • Grid_Auto_Text_Block_Trimming.png
    • Grid_CenteredShapes.png-dark
    • Grid_CenteredShapes.png
    • DisplayInformation.png-dark
    • DisplayInformation.png
    • Focus_FocusVisual_Properties.png-dark

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from cfedf49 to 052ba2a Compare October 27, 2026 12:48
@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 241644 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) 🚨🚨
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DisplayInformation.png-dark
    • DoubleImageBrushInList.png-dark
    • DoubleImageBrushInList.png
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
    • ElementLevelTheme.png-dark
    • ElementLevelTheme.png
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedIconPage.png-dark
    • AndroidWindowInsets.png-dark
    • AppBarButtonTest.png-dark
    • AppBarButtonWithIconTest.png
    • AppBarButtonTest.png
    • ApplicationViewSizing.png-dark
    • AppBarButtonWithIconTest.png-dark
    • AppWindowClosing.png-dark
    • AppBarToggleButtonTest.png
    • AppWindowPresenters.png-dark
    • Application_DispatcherShutdownMode.png
    • ArcSegment.png-dark
    • AppWindowTitleBar Properties.png
    • AuthenticationBroker_Cancel.png-dark
    • Attributed_text_FontSize_Changing.png
    • AutoBorderStretchwithrightmargin.png
    • AuthenticationBroker_Demo.png-dark
    • AutomationProperties_Name.png-dark
    • AuthenticationBroker_Demo.png
    • AutomationProperties_Name.png

@carldebilly carldebilly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pushing this through. The commit messages make each change easy to follow, and the macOS NSWindow fix (releasedWhenClosed = NO plus removal in windowWillClose) looks correct to me.

Approving, with a few things I'd like addressed (here or in a quick follow-up). Most important first:

  • Uno.Sdk packing of uno-proguard.cfg. As far as I can tell, the file never makes it into the nupkg, so consumers would get XA4304, which is an error under TreatWarningsAsErrors. I'd fix this one before merging.
  • OptimizePNGs. The workaround only lives in SamplesApp, but customer Release iOS/tvOS apps are affected the same way since dotnet/macios#26260.
  • Root global.json. It's now pinned to an exact rc.2 build. A question inline about whether that's intended.
  • Smaller items inline. NU5104 scope on AppleUIKit, the JDK step failing silently, the now-identical SdkInt branches, and #if UNO_25728.

A few more notes, none of them blocking:

  • The native macOS deployment target goes from 10.15 to 12.0 (project.pbxproj). That seems worth calling out in the release notes as a supported-platform change.
  • The first commit message mentions bumping MessagePack 3.1.7 → 3.1.12, but master already has 3.1.12, so that part of the message looks stale.
  • Commenting out the tvOS stage leaves the shipped net11.0-tvos27.0 assets without CI coverage until #25659 is resolved. A compile-time parameter (default false) would keep the YAML validated.
  • NSZombieEnabled=YES in macos-skia-runtime-tests.sh has no off switch (e.g. ${UNO_NSZOMBIE_ENABLED:-YES}), and zombies are never freed for the whole run.
  • The PR template sections are empty.

Comment thread src/Uno.Sdk/Uno.Sdk.csproj Resolved
Comment thread global.json Resolved
Comment thread build/ci/templates/jdk-setup.yml Resolved
Context: #25728

Currently there are only (only!) three remaining test failures when
building Uno for .NET 11 rc.2:

  * When_Resize
  * When_Resize_Before_Activate
  * When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work

Disable thsee failing tests for now so that we can finish migrating
to .NET 11 rc.2.

Fixing these failures is tracked at #25728.
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-try-net11-rc2 branch from 052ba2a to 359d0c7 Compare October 27, 2026 14:53
@jonpryor
jonpryor enabled auto-merge October 27, 2026 15:02
Update `jdk-setup.yml` to emit an error message if the appropriate
`$JAVA_HOME_*` env var is not set or referes to an invalid directory.

Simplify `ApplicationLanguages.cs`, as the minimum Android API level
is now API-24 ("`BuildVersionCodes.N`").

Update `Uno.UI.Runtime.AppleUIKit.csproj` so that NU5104 is only
ignored on tvOS, not iOS and macOS.

Revert the `global.json` change, as this was accidental.

Move `$(OptimizePNGs)` into `Uno.Common.iOS.targets` and
`Uno.Common.tvOS.targets`, as PNG optimization may break customers
who use Skia to load bundled resources.

Update `Uno.Sdk.csproj` so that `uno-proguard.cfg` is actually included
within the generated `.nupkg` file.
@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 241684 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) 🚨🚨
    • ClipboardTests.png-dark
    • ButtonClippingTestsControl.png-dark
    • ButtonClippingTestsControl.png
    • Buttons.png-dark
    • Buttons.png
    • CalendarView_Theming.png-dark
    • CalendarView_Theming.png
    • DisplayInformation.png-dark
    • CompositionEffectBrush.png-dark
    • CompositionEffectBrush.png
    • CompositionNineGridBrush_Source_Changes.png-dark
    • CompositionNineGridBrush_Source_Changes.png
    • DropDownButtonPage.png-dark
    • Focus_FocusVisual_Properties.png-dark
    • Focus_FocusVisual_Properties.png
    • Examples.png
    • DynamicFont.png-dark
    • DynamicFont.png
    • Gamepad_CurrentReading.png-dark
    • Gamepad_Enumeration.png-dark
  • skia-windows-screenshots: 2458 changed over 2492

    🚨🚨 Comparison Details (first 20) 🚨🚨
    • AnimatedBackVisualSourceSamplePage.png-dark
    • AndroidWindowInsets.png-dark
    • Accessibility_ScreenReader.png
    • AppBarButtonTest.png-dark
    • AnimatedVisualsTestbedPage.png-dark
    • AppBarButtonWithIconTest.png-dark
    • AppBar_KeyBoard.png-dark
    • AppBar_KeyBoard.png
    • ApplicationViewMode.png
    • ApplicationViewSpanningRectsPage.png
    • Application_DispatcherShutdownMode.png-dark
    • AppWindowClosing.png-dark
    • AppWindowPositionAndSize.png
    • AppWindowTitleBar Properties.png-dark
    • AppWindowPositionAndSize.png-dark
    • Attributed_text_FontSize_Changing.png
    • Arrange_Performance01.png-dark
    • AppXamlDefinedResources.png
    • AutoBorderStretchwithbottommargin.png
    • AuthenticationBroker_Cancel.png-dark

@jonpryor
jonpryor merged commit 264627d into master Oct 27, 2026
56 checks passed
@jonpryor
jonpryor deleted the dev/jonpryor/jonp-try-net11-rc2 branch October 27, 2026 17:36
@mergify

mergify Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again.

@ramezgerges ramezgerges mentioned this pull request Oct 27, 2026
2 of 5 tasks
ramezgerges added a commit to ramezgerges/uno that referenced this pull request Oct 27, 2026
unoplatform#25492 disabled When_Resize, When_Resize_Before_Activate and
When_TitleBar_Hidden_On_MacOS_Presenter_Commands_Work on macOS when CI moved
to the xcode-27 image, whose 1024x649 usable area they did not fit. The
previous two commits fit the resize tests to small screens and report
Maximized for a window that already fills the screen, so they run again.

Fixes unoplatform#25728.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
agneszitte added a commit to unoplatform/uno.templates that referenced this pull request Oct 28, 2026
unoplatform/uno#25492 added targets/uno-proguard.cfg, which
Uno.Common.Android.targets references. The Uno.Sdk repack only copied
.props, .targets, .buildschema.json and .dll files, so Android class
library builds failed with XACAAR7028 (file not found).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MartinZikmund MartinZikmund mentioned this pull request Nov 4, 2026
1 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/automation Categorizes an issue or PR as relevant to project automation area/build Categorizes an issue or PR as relevant to build infrastructure area/code-generation Categorizes an issue or PR as relevant to code generation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform platform/macos 🍏 Categorizes an issue or PR as relevant to the macOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

♥️ [.NET 11] Support

5 participants