Repository navigation
chore: Update to .NET 11 RTM (backport #26302) - #26311
Closed
mergify[bot] wants to merge 3 commits into
Closed
mergify[bot] wants to merge 3 commits into
mergify[bot] wants to merge 3 commits into
Conversation
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)
5 tasks
Contributor
Author
|
This pull request is closed, so it cannot be queued. Reopen it to get the box back. |
Contributor
|
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: |
Contributor
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-26311/docs/index.html |
1 task done
Member
|
Closing: the .NET 11 RTM update (#26302) reached |
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]>
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.
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:
To sanity-check locally, try:
Note: when updating
_Dotnet.cs, theversionvalue innew PackageIdentity(id, version)must match the filesystem path underneathpacks/Microsoft.NETCore.App.Ref, which may not match the output ofdotnet --version. Check the filesystem! This is also true forMicrosoft.Android.Ref.37.GitHub Issue: related to #26304
PR Type:
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.This is an automatic backport of pull request #26302 done by [Mergify](https://mergify.com).