Skip to content

chore: Update to .NET 11 RTM - #26302

Merged
jonpryor merged 3 commits into
masterfrom
dev/jonpryor/jonp-bump-net11-rtm
Nov 11, 2026
Merged

jonpryor merged 3 commits into
masterfrom
dev/jonpryor/jonp-bump-net11-rtm

Conversation

@jonpryor

@jonpryor jonpryor commented Nov 10, 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 ✅

@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 area/sdk Categorizes an issue or PR as relevant to the Uno.Sdk labels Nov 10, 2026
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

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`.
`$(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…
**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.
@jonpryor
jonpryor force-pushed the dev/jonpryor/jonp-bump-net11-rtm branch from 4b5aa7f to 08852c9 Compare November 11, 2026 00:40
@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor marked this pull request as ready for review November 11, 2026 02:13
@jonpryor
jonpryor enabled auto-merge November 11, 2026 02:13
@mergify

mergify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@unodevops

Copy link
Copy Markdown
Contributor

@unodevops

Copy link
Copy Markdown
Contributor

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

@jonpryor
jonpryor merged commit 5db002d into master Nov 11, 2026
82 checks passed
@jonpryor
jonpryor deleted the dev/jonpryor/jonp-bump-net11-rtm branch November 11, 2026 10:59
@agneszitte

Copy link
Copy Markdown
Member

@Mergifyio backport release/stable/7.0

@mergify

mergify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/7.0

✅ Backports have been created

Details

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.

.NET 11 RTM: build Uno Platform 7.0 with the .NET 11 GA SDK

4 participants