Skip to content

chore: Update to .NET 11 RTM (backport #26302) - #26311

Closed
mergify[bot] wants to merge 3 commits into
release/stable/7.0from
mergify/bp/release/stable/7.0/pr-26302
Closed

mergify[bot] wants to merge 3 commits into
release/stable/7.0from
mergify/bp/release/stable/7.0/pr-26302

Conversation

@mergify

@mergify mergify Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Related to: #26304
Related to: #22745

Context: 0c12d33

Update version numbers accordingly. In particular, update -ios and related version numbers, which bumped from 27.0 to 27.2:

git grep -l 'net11.0.*27.0' | xargs \
  sed -E -i '' -e 's,net11\.0-ios27.0,net11\.0-ios27.2,g' \
    -e 's,net11\.0-tvos27.0,net11\.0-tvos27.2,g'

To sanity-check locally, try:

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

dotnet build 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
dotnet build -c Release -f net11.0-ios -p:UnoTargetFrameworkOverride=net11.0-ios src/SamplesApp/SamplesApp/SamplesApp.csproj
dotnet build build/filters/Uno.UI-packages-all.slnf

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.

GitHub Issue: related to #26304

PR Type:

What changed? 🚀

PR Checklist ✅


This is an automatic backport of pull request #26302 done by [Mergify](https://mergify.com).

Fixes: #22745

Context: 0c12d33

Update version numbers accordingly.  In particular, update -ios and
related version numbers, which bumped from 27.0 to 27.2:

	git grep -l 'net11.0.*27.0' | xargs \
	  sed -E -i '' -e 's,net11\.0-ios27.0,net11\.0-ios27.2,g' \
	    -e 's,net11\.0-tvos27.0,net11\.0-tvos27.2,g'

To sanity-check locally, try:

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

	dotnet build 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
	dotnet build -c Release -f net11.0-ios -p:UnoTargetFrameworkOverride=net11.0-ios src/SamplesApp/SamplesApp/SamplesApp.csproj
	dotnet build build/filters/Uno.UI-packages-all.slnf

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`.

(cherry picked from commit 4d251d7)
`$(RunAOTCompilation)` is not supported on Android in .NET 11.
Attempting to set it results in a compiler error:

	…/tools/Xamarin.Android.Common.targets(562,3): error XA1044:
	  The MSBuild property 'RunAOTCompilation' is not compatible with the CoreCLR runtime.
	  The build cannot continue while this property is set to 'false'.
	  Remove the property.
	  Starting with .NET 11, set 'PublishReadyToRun' to 'false' to disable ReadyToRun (R2R) AOT compilation.

Do as it says: stop setting `$(RunAOTCompilation)` entirely unless
we *know* it's for .NET 10, and instead set `$(PublishReadyToRun)`=false
when we know it's for .NET 11.

Update the specs as well, because even though they mention net10.0,
net10.0 won't be around forever…

(cherry picked from commit 835a2bd)
**Tests - iOS > Skia Runtime Tests > Run iOS Simulator Tests**
fails on CI:

	Creating 'iPad Pro 13-inch (M5)' (com.apple.CoreSimulator.SimDeviceType.iPad-Pro-13-inch-M5-12GB / com.apple.CoreSimulator.SimRuntime.iOS-27-2-iPhone19-4)
	An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=403):
	Incompatible device

The cause of the failure is that we're trying to find an appropriate
simulator that runs iOS 27.2, and there are two underlying matches:
one for iPhone, and one for iPad.

The problem is that we're then trying to use `xcrun simctl create`
with `<device type id>` "com.apple.CoreSimulator.SimDeviceType.iPad-Pro-13-inch-M5-12GB"
and `<runtime id>` "com.apple.CoreSimulator.SimRuntime.iOS-27-2-iPhone19-4";
these are not consistent with each other.

The fix is to use `$UNO_UITEST_SIMULATOR_NAME` as part of the
`xcrun simctl list devicetypes` parsing, so that arguemnts provided
to `xcrun simctl create` are consistent.

Additionally, enable `set -x` so that MOAR INPUT is generated.

(cherry picked from commit 08852c9)
@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/automation Categorizes an issue or PR as relevant to project automation kind/documentation area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Nov 11, 2026
@mergify mergify Bot mentioned this pull request Nov 11, 2026
5 tasks
@mergify

mergify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is closed, so it cannot be queued. Reopen it to get the box back.

@unodevops

Copy link
Copy Markdown
Contributor

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

@unodevops

Copy link
Copy Markdown
Contributor

@agneszitte

Copy link
Copy Markdown
Member

Closing: the .NET 11 RTM update (#26302) reached release/stable/7.0 through the master sync #26251, merged today. Every change in this backport is on the branch now; the 3 files that still differ from it (Uno.WinUI.nuspec, Uno.WinUI.Graphics2DSK.nuspec, src/Uno.Sdk/packages.json) only carry later master changes on top.

@agneszitte agneszitte closed this Nov 11, 2026
agneszitte added a commit to unoplatform/uno.templates that referenced this pull request Nov 11, 2026
- New net11.0 projects no longer allow a prerelease .NET SDK (global.json
  allowPrerelease, unoapp and unoapp-reactor)
- net11.0 overrides at .NET 11 GA: Maui 11.0.0-rc.2.26505.5 -> 11.0.0 and
  MicrosoftLoggingConsole 11.0.0-rc.3.26522.148 -> 11.0.0, the versions uno
  pins on release/stable/7.0 (unoplatform/uno#26311). The updater skips Maui
  on a stable branch, so it's bumped here by hand.
- Drop the two ".NET 11 is not GA yet" allowed prerelease pins
- CI net11 validation: .NET SDK 11.0.100, uno-check 1.35.0-dev.119,
  Xcode 27.2 and the iOS 27.2 simulator runtime
- macOS net11 groups run on the xcode-27 image (public preview): macos-26
  has no Xcode 27. net10 groups stay on macos-26 with Xcode 26.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@MartinZikmund
MartinZikmund deleted the mergify/bp/release/stable/7.0/pr-26302 branch November 12, 2026 10:04
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 kind/documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants