Repository navigation
Conversation
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
3ce94e8 to
1d40337
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 220321 did not find any UI Test snapshots differences. |
|
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 220426 did not find any UI Test snapshots differences. |
|
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
|
7623c50 to
c118e25
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 220520 did not find any UI Test snapshots differences. |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 220550 did not find any UI Test snapshots differences. |
There was a problem hiding this comment.
Pull request overview
This PR advances the Uno repository’s build, CI, packaging, and codebase targeting from the .NET 9/10 era to .NET 10/11, aligning NetPrevious=net10.0 and NetCurrent=net11.0 and updating platform/tooling dependencies to support .NET 11 Preview 5 across targets (Skia/WASM/mobile/DevServer tooling).
Changes:
- Updates global/central build variables and CI images/SDK selection to build with .NET 11 Preview 5, including new
build/ci/net11/_global.jsonand runner image bumps. - Adjusts package references, TFMs, and platform minimums (notably Apple OS versions and Android minSdk 24) for .NET 11 compatibility.
- Applies targeted source fixes for new nullability/trimming/runtime behaviors (e.g., SkiaWasm avoiding
Task.Wait, iOS nullability updates, AndroidX API changes).
Reviewed changes
Copilot reviewed 131 out of 131 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/ResourcesExtractor/ResourcesExtractor/ResourcesExtractor.csproj | Moves the tool forward to the new “previous” TFM (net10 windows). |
| src/Uno.WinAppSDKSyncGenerator/Generator.cs | Updates the compilation TFMs used for symbol extraction to net10 baselines. |
| src/Uno.WinAppSDKSyncGenerator.References/Uno.WinAppSDKSyncGenerator.References.csproj | Uses $(NetCurrent) for the Windows TFM. |
| src/Uno.UWP/Uno.netcoremobile.csproj | Splits AndroidX package refs by net10 vs net11 and adds DocumentFile for net11. |
| src/Uno.UWP/Storage/StorageFolder.saf.Android.cs | Adapts to updated AndroidX DocumentFile nullability and ListFiles() returning null. |
| src/Uno.UWP/Storage/StorageFile.saf.Android.cs | Adapts SAF file handling to updated DocumentFile nullability. |
| src/Uno.UWP/Security/Authentication/Web/WebAuthenticationBrokerProvider.iOS.cs | Adds null-safety for iOS bundle InfoDictionary access. |
| src/Uno.UWP/Security/Authentication/Web/WebAuthenticationBrokerProvider.Android.cs | Handles obsolete CustomTabs API + updated nullability and intent setup. |
| src/Uno.UWP/Devices/Lights/Lamp.Android.cs | Adds suppression around formatting warnings in updated conditional compilation block. |
| src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/UnoWKWebView.iOS.cs | Fixes iOS header nullability and corrects path normalization using TrimStart('/'). |
| src/Uno.UI/UI/Xaml/Controls/WebView/Native/iOSmacOS/NativeCoreWebView2HttpRequestHeaders.iOS.cs | Adjusts for nullable ToString() behavior under .NET 11 annotations. |
| src/Uno.UI.UnitTests/Uno.UI.UnitTests.csproj | Removes net9-only workaround package references. |
| src/Uno.UI.Tests.ViewLibraryProps/Uno.UI.Tests.ViewLibraryProps.csproj | Removes net9-only Microsoft.CSharp workaround reference. |
| src/Uno.UI.Tests.ViewLibrary/Uno.UI.Tests.ViewLibrary.csproj | Removes net9-only Microsoft.CSharp workaround reference. |
| src/Uno.UI.TestComparer/Uno.UI.TestComparer.csproj | Adds NU1903 suppression and removes workaround package refs now handled elsewhere. |
| src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Markup/Given_XamlReader.cs | Adds trimming suppressions around value-type instantiation via Activator. |
| src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Given_StorageFolder_Native.Android.cs | Adds null-check on DocumentFile.FromFile for updated nullability. |
| src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Given_StorageFile_Native.Android.cs | Adds System using and null-check on DocumentFile.FromFile. |
| src/Uno.UI.RuntimeTests/Tests/Windows_Storage/Given_FileIO_Native.Android.cs | Adds System using and null-check on DocumentFile.FromFile. |
| src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRUnoLib/Uno.UI.RuntimeTests.HRUnoLib.csproj | Updates HR test library to net11. |
| src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRApp/Uno.UI.RuntimeTests.HRApp.Skia.csproj | Updates HR test app to net11. |
| src/Uno.UI.RuntimeTests/Tests/AssemblyLoadContext/Given_AlcContentHost.cs | Updates ALC test framework string selection for NET11. |
| src/Uno.UI.RuntimeTests/Tests/AssemblyLoadContext/AlcApp/Uno.UI.RuntimeTests.AlcApp.csproj | Uses $(NetCurrent) for AlcApp TFM. |
| src/Uno.UI.RuntimeTests/MUX/Utilities/MUXTestPage.cs | Adds missing suppression-related namespace import. |
| src/Uno.UI.RuntimeTests/MUX/Helpers/EventTester.cs | Avoids Task.Wait() in browser (SkiaWasm) to prevent .NET 11 PNSE. |
| src/Uno.UI.RuntimeTests/Helpers/ConditionalTestHelper.cs | Improves diagnostics output for platform detection failures (plus new description dump). |
| src/Uno.UI.Runtime.Skia.Android/Accessibility/UnoExploreByTouchHelper.cs | Updates override signature and API usage differences under net11 AndroidX. |
| src/Uno.UI.RemoteControl/buildTransitive/Uno.WinUI.DevServer.targets | Updates host path selection logic for net10/net11. |
| src/Uno.UI.RemoteControl.ServerCore/Uno.UI.RemoteControl.ServerCore.csproj | Removes package refs now expected via transitive graph. |
| src/Uno.UI.RemoteControl.Server/Uno.UI.RemoteControl.Server.csproj | Removes DI abstractions ref (now via transitive). |
| src/Uno.UI.RemoteControl.Server/Processors/DefaultRemoteControlProcessorFactory.cs | Adds net11 probing for processor discovery base path layout. |
| src/Uno.UI.RemoteControl.Server.Processors/Uno.UI.RemoteControl.Server.Processors.csproj | Centralizes MSBuild/Roslyn package versions; updates crypto XML pin. |
| src/Uno.UI.RemoteControl.Host/Uno.UI.RemoteControl.Host.csproj | Shifts global.json content selection to net11/net10. |
| src/Uno.UI.RemoteControl.DevServer.Tests/Telemetry/TelemetryProcessorTests.cs | Updates test folder probing from net10.0 to net11.0 layout. |
| src/Uno.UI.RemoteControl.DevServer.Tests/Mcp/Given_DiscoveryIssueMapper.cs | Updates expected dotnet TFM/paths for net11 host. |
| src/Uno.UI.RemoteControl.DevServer.Tests/Helpers/SolutionHelper.cs | Uses DOTNET_INSTALL_DIR for dotnet and rewrites generated app TFMs for prerelease testing. |
| src/Uno.UI.RemoteControl.DevServer.Tests/Helpers/ExternalDllDiscoveryHelper.cs | Updates framework probing defaults/documentation to net10/net11. |
| src/Uno.UI.RemoteControl.DevServer.Tests/AppLaunch/RealAppLaunchIntegrationTests.cs | Adjusts target framework derivation for prerelease override behavior. |
| src/Uno.UI.FluentTheme.v2/themeresources_v2.xaml | Adds WinUI behavioral comment about disabled item dimming. |
| src/Uno.UI.Dispatching/Uno.UI.Dispatching.netcoremobile.csproj | Updates comment to reflect new “generic net” override example. |
| src/Uno.UI.DevServer.Cli/Uno.UI.DevServer.Cli.csproj | Uses $(NetCurrent) for the CLI TFM. |
| src/Uno.UI.DevServer.Cli/Helpers/UnoToolsLocator.cs | Updates generated UnoSdk project TFM used in SDK installation workflow. |
| src/Uno.UI.DevServer.Cli/Helpers/DiscoveryInfo.cs | Updates doc comment example TFM. |
| src/Uno.UI.DevServer.Cli.E2E.Tests/Uno.UI.DevServer.Cli.E2E.Tests.csproj | Moves CLI E2E tests to net11. |
| src/Uno.UI.DevServer.Cli.E2E.Tests/Mcp/TemporaryUnoWorkspaceBuilder.cs | Updates expected cached host path to net11. |
| src/Uno.UI.DevServer.Cli.E2E.Tests/Mcp/BuildOutputLocator.cs | Updates probing order to net10/net11. |
| src/Uno.UI.BindingHelper.Android/Uno.UI.BindingHelper.Android.netcoremobile.csproj | Fixes Android jar location probing for API “major.minor” SDK structure. |
| src/Uno.UI.Adapter.Microsoft.Extensions.Logging/MicrosoftLogger.cs | Ensures message formatter never returns null under updated nullability. |
| src/Uno.Sdk/Uno.Sdk.csproj | Removes no-longer-needed pinned workaround dependency. |
| src/Uno.Sdk/targets/Uno.DefaultItems.Resizetizer.targets | Updates comment describing supported “no platform identifier” behavior. |
| src/Uno.Sdk/targets/Uno.Common.Wasm.targets | Updates comment for CA1418 case sensitivity on newer .NET. |
| src/Uno.Sdk/Sdk/Sdk.props.buildschema.json | Updates schema description referencing the newer windows net target. |
| src/Uno.Sdk/packages.json | Moves version overrides from net10 to net11 keys where required. |
| src/Uno.ReferenceImplComparer/Program.cs | Updates reference target list to net10 + net11. |
| src/Uno.HotReload/Uno.HotReload.csproj | Centralizes MSBuild/Roslyn package versions; updates crypto XML pin. |
| src/Uno.Foundation.Runtime.WebAssembly/Interop/WebAssembly.Runtime.cs | Updates exception message to reflect net11. |
| src/Uno.CrossTargetting.targets | Raises Android SupportedOSPlatformVersion to 24.0. |
| src/Uno.Analyzers.Tests/Uno.Analyzers.Tests.csproj | Bumps analyzer test Roslyn version property and removes net9-only workarounds. |
| src/targetframework-override.props | Replaces hardcoded Apple OS versions with NetPrevious/NetCurrent + Apple OS version properties. |
| src/targetframework-override-windows.props | Switches Windows override selection to use NetPrevious/NetCurrent variables. |
| src/targetframework-override-noplatform.props | Switches no-platform override selection to NetPrevious/NetCurrent variables. |
| src/targetframework-override-netprevious.props | Updates Apple OS-version mapping to new properties. |
| src/SourceGenerators/Uno.UI.Tasks/Uno.UI.Tasks.csproj | Centralizes Microsoft.Build package versions via Directory.Build.targets. |
| src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs | Updates supported dotnet version constant to 11. |
| src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerHintGeneratorTask.cs | Updates net baseline selection logic for linker hint generation. |
| src/SourceGenerators/Uno.UI.Tasks/Content/Uno.UI.Tasks.targets | Updates comments around linker path structure for newer .NET. |
| src/SourceGenerators/Uno.UI.SourceGenerators/XamlGenerator/AndroidResourcesGenerator.cs | Updates comment about resource constants support baseline. |
| src/SourceGenerators/Uno.UI.SourceGenerators/Content/Uno.UI.SourceGenerators.props | Uses NetPrevious/NetCurrent when detecting “net std ref” scenarios. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/XamlCodeBehindGeneratorTests/XamlCodeBehindGeneratorTests.cs | Updates obj-path examples to net11. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/UnoAssemblyHelper.cs | Updates hardcoded previous/current TFMs to net10/net11. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdateTests/Given_HotReloadService.cs | Updates comment about generated output folder for net11. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/MetadataUpdates/HotReloadWorkspaceProvider.cs | Adds NET11 hot reload capability strings. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/_Dotnet.cs | Introduces “real” reference assemblies for net11 (and net11-android) for generator tests. |
| src/SourceGenerators/System.Xaml/Uno.Xaml.csproj | Suppresses trimming warnings for this generator-focused assembly. |
| src/SourceGenerators/System.Xaml/System.Xaml.Schema/XamlValueConverter.cs | Adds trimming suppression on reflection-based instantiation. |
| src/SourceGenerators/System.Xaml/System.Windows.Markup/ValueSerializer.cs | Adds trimming suppression and import. |
| src/SourceGenerators/sourcegenerators.local.props | Updates RC host path selection to net10/net11. |
| src/SolutionTemplate/5.6/uno56netcurrent/.../launchSettings.json | Updates launch args to net10 desktop path. |
| src/SolutionTemplate/5.6/uno56net9win32/.../launchSettings.json | Updates launch args to net10 desktop path. |
| src/SolutionTemplate/5.3/uno53net9blank/.../launchSettings.json | Updates launch args to net10 desktop path. |
| src/SolutionTemplate/5.3/uno53AppWithLib/.../launchSettings.json | Updates launch args to net10 desktop path. |
| src/SamplesApp/UnoIslandsSamplesApp.Skia/UnoIslandsSamplesApp.Skia.csproj | Removes net9-only package workaround block. |
| src/SamplesApp/SamplesApp.Skia.netcoremobile/tvOS/Info.plist | Raises tvOS minimum OS version to 13.0. |
| src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj | Adds net11-android r8 link tool workaround and updates min Apple OS version to 13.0. |
| src/SamplesApp/SamplesApp.Skia.netcoremobile/iOS/Info.plist | Raises iOS minimum OS version to 13.0. |
| src/SamplesApp/SamplesApp.Skia.netcoremobile/Android/AndroidManifest.xml | Raises Android minSdkVersion to 24. |
| src/SamplesApp/SamplesApp.Samples/.../NavigationViewAnimationPage.xaml.cs | Adds missing System.Globalization using. |
| src/FontFallbackPreprocessor/FontFallbackPreprocessor.csproj | Keeps this project on NetPrevious via $(NetPrevious) and documents why. |
| src/Directory.Build.targets | Centralizes MSBuild/Roslyn package versions based on TFM; updates AndroidX package versions by TFM. |
| src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj | Adds net11 Android Play Core package version. |
| src/AddIns/Uno.UI.Foldable/Uno.UI.Foldable.netcoremobile.csproj | Adds net11 Android WindowJava package version. |
| Directory.Build.props | Sets NetPrevious=net10.0, NetCurrent=net11.0 and introduces Apple OS version properties. |
| build/Uno.UI.Build.csproj | Uses $(NetCurrent) for build tooling project. |
| build/test-scripts/skia-ios-uitest-build.sh | Makes iOS Skia UI test build script TFM-configurable via env var. |
| build/test-scripts/run-devserver-cli-tests.ps1 | Updates validation to require net10 + net11 host binaries. |
| build/test-scripts/run-devserver-cli-local.ps1 | Updates local resolver to require net11 host binaries. |
| build/test-scripts/macos-skia-runtime-tests.sh | Adds crash-dump env configuration and extra host info logging. |
| build/test-scripts/local-android-uitest-run.sh | Makes local Android UI test script TFM-configurable via env var. |
| build/test-scripts/ios-uitest-run.sh | Makes iOS UI test runner script TFM-configurable via env var. |
| build/test-scripts/ios-uitest-build.sh | Makes iOS UI test build script TFM-configurable via env var. |
| build/nuget/Uno.WinUI.XamlHost.nuspec | Updates package TFMs and adds net11 artifacts. |
| build/nuget/uno.winui.winappsdk.targets | Updates reference paths to net10 windows assets. |
| build/nuget/Uno.WinUI.Svg.nuspec | Updates TFMs and adds net11 artifacts. |
| build/nuget/Uno.WinUI.nuspec | Updates net10/net11 reference and runtime packaging layout. |
| build/nuget/Uno.WinUI.MSAL.nuspec | Updates TFMs, adds net11 artifacts, and reworks dependency groups. |
| build/nuget/Uno.WinUI.Lottie.nuspec | Updates TFMs and adds net11 artifacts. |
| build/nuget/Uno.WinUI.Graphics2DSK.nuspec | Updates TFMs and adds net11 artifacts. |
| build/nuget/Uno.WinUI.DevServer.nuspec | Updates package TFMs/artifacts and host/runtime asset layout for net10/net11. |
| build/nuget/Uno.WinRT.nuspec | Updates TFMs and adds net11 artifacts; adjusts android folder naming. |
| build/nuget/Uno.Foundation.nuspec | Updates TFMs and adds net11 artifacts; adjusts android folder naming. |
| build/gitpod/build-wasm.sh | Updates Gitpod override TFM to net10. |
| build/gitpod/build-skia.sh | Updates Gitpod override TFM to net10. |
| build/ci/tests/.azure-devops-tests-webassembly-skia-build.yml | Moves uno-check and publish steps to $(netCurrentTargetFramework). |
| build/ci/tests/.azure-devops-tests-templates.yml | Removes (now unnecessary) Android 35 install step for macOS-26 images. |
| build/ci/tests/.azure-devops-tests-skia-build.yml | Moves build + publish paths to $(netCurrentTargetFramework). |
| build/ci/tests/.azure-devops-tests-macos-skia.yml | Switches vmImage selection variable for macOS Skia tests. |
| build/ci/tests/.azure-devops-tests-ios-skia-build.yml | Moves to netCurrent target and passes TFM into build script. |
| build/ci/tests/.azure-devops-tests-ios-runner.yml | Passes TFM into UI test scripts for netCurrent. |
| build/ci/tests/.azure-devops-tests-android-skia-build.yml | Moves Android Skia build/publish to netCurrent target. |
| build/ci/tests/.azure-devops-tests-android-nativeaot-skia-build.yml | Moves Android NativeAOT build/publish to netCurrent target. |
| build/ci/tests/.azure-devops-tests-android-coreclr-skia-build.yml | Moves Android CoreCLR build/publish to netCurrent target. |
| build/ci/templates/dotnet-install.yml | Parameterizes global.json selection (defaulting to build/ci/net11). |
| build/ci/templates/dotnet-install-previous-wasmtools.yml | Updates wasm-tools workload install to wasm-tools-net10. |
| build/ci/publish/.azure-devops-publish-ios-testflight.yml | Moves iOS TestFlight publish to $(netCurrentTargetFramework)-ios. |
| build/ci/net11/_global.json | Adds .NET 11 Preview 5 pinned SDK selection for CI. |
| build/ci/build/.azure-devops-build-managed.yml | Updates uno-check TFMs to use $(netCurrentTargetFramework) with preview-major. |
| .vsts-ci.yml | Updates runner images/paths and sets new netCurrent/netPrevious target framework variables. |
| .globalconfig | Updates TODO comment referencing net10.0 rather than net9.0. |
| .github/workflows/codeql.yml | Updates CodeQL build to net11.0. |
| .devcontainer/Dockerfile | Updates uno-check TFMs to net11 for desktop/browserwasm. |
Comments suppressed due to low confidence (1)
src/Uno.UI.RemoteControl.DevServer.Tests/AppLaunch/RealAppLaunchIntegrationTests.cs:152
- This
dotnet buildinvocation still usesFileName = "dotnet", so on CI it may pick up the wrong SDK even thoughSolutionHelpernow respectsDOTNET_INSTALL_DIR. Consider routing this through the same dotnet path resolution to avoid mixing .NET 10 and .NET 11 builds in the integration test.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
87e1103 to
60f22ae
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 221063 found UI Test snapshots differences: Details
|
60f22ae to
2efdc0c
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
2efdc0c to
b931165
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 221107 found UI Test snapshots differences: Details
|
b931165 to
46cd386
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 221133 found UI Test snapshots differences: Details
|
Context: #22745 Context: unoplatform/uno.templates#1992 Context? 69cc392 It's that time of year again! .NET 11 previews are out; does Uno work with .NET 11? Let's find out! Build system changes and notes: * Centralize NuGet package versions for the Microsoft.Build* and Microsoft.CodeAnalysis* NuGet packages. * Leave `FontFallbackPreprocessor.csproj` targeting net10.0, as this job never provisions .NET itself, and .NET 10 is pre-installed on that CI bot. * Update `$(macOSVMImage)` to use `macOS-26` (up from `macOS-15`). dotnet/macios in .NET 11 now requires Xcode 26.5, and only the [macOS-26 runner-image][0] provides Xcode 26.5.x. * When it makes sense to do so, use `$(NetPrevious)` and `$(NetCurrent)` instead of hardcoding target frameworks. When it *doesn't* make sense to do so: specifying NuGet package versions, which are normally only bumped when the .NET version changes, and it makes things clearer that these are related by using explicit .NET versions and *not* using `$(Net*)`. * Introduce new `$(NetPreviousAppleOSVersion)` and `$(NetCurrentAppleOSVersion)` MSBuild properties to avoid hardcoding Apple OS versions. * net11.0-ios and net11.0-tvos bump the minimum supported `$(SupportedOSPlatformVersion)` value to 13.0. * Bump `Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing` NuGet package version to 1.1.3, so that we can use e.g. `ReferenceAssemblies.Net.Net100`. * Bump `System.Security.Cryptography.Xml` NuGet package version to 10.0.0, as newer `Microsoft.CodeAnalysis` NuGet packages require that System.Security.Cryptography.Xml be >= 9.0. * Bump NuGet Package versions for .NET 11 Android; resolves: Missing class javax.lang.model.element.Modifier (referenced from: javax.lang.model.element.Modifier[] com.google.errorprone.annotations.IncompatibleModifiers.value() and 1 other context) * However, updating those package versions means we need to bump `$(SupportedOSPlatformVersion)` to 24 (up from 21). Update that in `Uno.CrossTargetting.targets`, and *remove* `$(SupportedOSPlatformVersion)` from `SamplesApp*.netcoremobile.csproj` as those are "confusing noise"; they're not used, as `Uno.CrossTargetting.targets` always replaces. Also update `//uses-sdk/@android:minSdkVersion` in various `AndroidManifest.xml` to be at least 24. * Some of the updated .NET 11 Android NuGet packages also broke API in various ways; update `UnoExploreByTouchHelper.cs`/etc. to compensate. * Update `src/Uno.UWP/Uno.netcoremobile.csproj` to add an explicit `@(PackageReference)` to Xamarin.AndroidX.DocumentFile. This was previously implicitly brought in by [email protected], but we can't use that version anymore due to NU1703 warnings: error NU1703: Package 'Xamarin.AndroidX.Browser' 1.0.0 uses the deprecated MonoAndroid framework instead of 'net6.0-android' or later. Consider upgrading to a newer version of this package or contacting the package author. The updated Xamarin.AndroidX.DocumentFile in turn has changes to nullability and obsoletions, requiring changes. * Fix NU1510 errors by removing `@(PackageReference)`s for the mentioned packages: Microsoft.Extensions.Logging.Abstractions, Microsoft.CSharp, System.Formats.Asn1, System.Net.Http, System.Text.RegularExpressions. * Set `$(AndroidLinkTool)`=r8 in SamplesApp projects for net11.0-android. This works around a crash in r8. TODO: upstream URL. * Reminder: `.azure-devops-tests-ios-skia-build.yml` must be consistent with `skia-ios-uitest-build.sh`. Source code changes: * Apple platforms such as net11.0-ios26.5 have changed nullability of methods such as `NSObject.FromObject()`. Compensate. While updating nullability, also update nearby logic errors. `UnoWKWebView.ProcessNavigation()` calls `relativePath.Substring(1)` if `relativePath` starts with a `/`, but if it were to start with *multiple* slashes, the result would still start with a slash. Use `resultPath.TrimStart('/')` instead. `SvgImageSource.OpenSvgBundle()` could have `fileExtension==""` and would then call `fileExtension.Substring(1)`, which could throw. Use `fileExtension.TrimStart('.')` instead. * `object.ToString()` has long returned nullable `string?`, but only now is it apparently impacting `NativeCoreWebView2HttpRequestHeaders.iOS.cs`. (Go figure.) * .NET 11 has new IDE0055 warnings for pre-existing constructs; in particular, `else if` must be on the same line, and `#region`/`#endregion` must have matching indentation. Update various files to fix these warnings. * The updated Xamarin.AndroidX.DocumentFile NuGet package has nullability changes. Adapt. * Trimmer fixes! TODO description. * Update `Given_BrowserKeyboardInputSource.cs` to use `Type.GetType(string)` instead of `AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(…).GetType(…)` to fix IL2026 and IL2072 warnings: Given_BrowserKeyboardInputSource.cs(43,5): error IL2026: Using member 'System.Reflection.Assembly.GetType(String)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. Types might be removed by trimming. If the type name is a string literal, consider using Type.GetType instead. Given_BrowserKeyboardInputSource.cs(50,18): error IL2072: 'type' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors', 'DynamicallyAccessedMemberTypes.NonPublicConstructors' in call to 'System.Runtime.CompilerServices.RuntimeHelpers.GetUninitializedObject(Type)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. Given_BrowserKeyboardInputSource.cs(53,22): error IL2075: 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicEvents' in call to 'System.Type.GetEvent(String, BindingFlags)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. Given_BrowserKeyboardInputSource.cs(58,18): error IL2075: 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetMethod(String, BindingFlags)'. The return value of method 'System.Reflection.Assembly.GetType(String)' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. * Update `SamplesApp.netcoreapp.csproj` to ignore IL2026 warnings from `System.Data`: error IL2026: System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.GetSchema(): Using member 'System.Data.DataSet.WriteXmlSchema(DataSet, XmlWriter)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataSet.GetSchema uses TypeDescriptor and XmlSerialization underneath which are not trimming safe. Members from serialized types may be trimmed if not referenced directly. error IL2026: System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader): Using member 'System.Data.DataSet.ReadXmlSerializableInternal(XmlReader)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataSet.ReadXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. error IL2026: System.Data.DataSet.System.Xml.Serialization.IXmlSerializable.WriteXml(XmlWriter): Using member 'System.Data.DataSet.WriteXmlInternal(XmlWriter)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataSet.WriteXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. error IL2026: System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.GetSchema(): Using member 'System.Data.DataTable.GetXmlSchema()' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataTable.GetSchema uses TypeDescriptor and XmlSerialization underneath which are not trimming safe. Members from serialized types may be trimmed if not referenced directly. error IL2026: System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.ReadXml(XmlReader): Using member 'System.Data.DataTable.ReadXmlSerializableInternal(XmlReader)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataTable.ReadXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. error IL2026: System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.WriteXml(XmlWriter): Using member 'System.Data.DataTable.WriteXmlInternal(XmlWriter)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DataTable.WriteXml uses XmlSerialization underneath which is not trimming safe. Members from serialized types may be trimmed if not referenced directly. error IL2026: System.ComponentModel.DefaultValueAttribute.DefaultValueAttribute(Type, String): Using member 'System.ComponentModel.DefaultValueAttribute.<.ctor>g__TryConvertFromInvariantString|4_0(Type, String, Object&)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. DefaultValueAttribute usage of TypeConverter is not compatible with trimming. Commands to migrate from net9+net10 to net10+net11, for posterity: git grep -l 'net10\.0' | while read file ; do sed -i '' 's/net10\.0/net11\.0/g' $file ; done git grep -l 'net9\.0' | while read file ; do sed -i '' 's/net9\.0/net10\.0/g' $file ; done git grep -l net10.0-ios18.0 | while read file ; do sed -i '' 's/net10.0-ios18.0/net10.0-ios26.0/g' $file ; done git grep -l net10.0-tvos18.0 | while read file ; do sed -i '' 's/net10.0-tvos18.0/net10.0-tvos26.0/g' $file ; done git grep -l net10.0-maccatalyst18.0 | while read file ; do sed -i '' 's/net10.0-maccatalyst18.0/net10.0-maccatalyst26.0/g' $file ; done git grep -l net11.0-ios26.0 | while read file ; do sed -i '' 's/net11.0-ios26.0/net11.0-ios26.5/g' $file ; done git grep -l net11.0-tvos26.0 | while read file ; do sed -i '' 's/net11.0-tvos26.0/net11.0-tvos26.5/g' $file ; done git grep -l net11.0-maccatalyst26.0 | while read file ; do sed -i '' 's/net11.0-maccatalyst26.0/net11.0-maccatalyst26.5/g' $file ; done `@(PackageReference)` needs to be reviewed, as the above "in-place" updates mean that "net10.0" is using the same packages as "net9.0", which are almost certainly wrong. To easily find files to review: git status | grep modified: | cut -c 14- | while read file ; do if git diff HEAD^ $file | grep '<PackageReference' >/dev/null 2>&1 ; then echo $file fi done > review.txt To sanity-check locally, try: cp build/ci/net11/_global.json global.json export PATH=/location/of/net11:$PATH dotnet build -f net11.0 src/Uno.Foundation/Uno.Foundation.csproj dotnet build -f net11.0 src/Uno.UI/Uno.UI.Skia.csproj dotnet build -f net11.0-android src/Uno.UI/Uno.UI.netcoremobile.csproj dotnet build -f net11.0-android src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj dotnet publish -f net11.0-android src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj -p:RunAOTCompilation=false -p:UnoTargetFrameworkOverride=net11.0-android -p:UNO_DISABLE_ANALYZERS_IN_SAMPLES=true -bl dotnet build -f net10.0-ios -c Release -p:UnoTargetFrameworkOverride=net10.0-ios -bl src/SamplesApp/SamplesApp.netcoremobile/SamplesApp.netcoremobile.csproj TODO: * When unoplatform/uno.templates supports .NET 11 (unoplatform/uno.templates#1992), update `RealAppLaunchIntegrationTests.cs._targetFramework` to net11.0. [0]: https://github.com/actions/runner-images/blob/9e3319d6b4acc306925295853d0ff41ddd5c40f0/images/macos/macos-26-Readme.md#xcode --- **Build - Managed Binaries > Build > Building Managed Binaries** failed with: C:\a\1\s\src\Uno.UI.BindingHelper.Android\Uno.UI.BindingHelper.Android.netcoremobile.csproj(107,3): error : The Android SDK for API level 37 is not installed. Install it through the Android SDK manager. [TargetFramework=net11.0-android] Bump GlobalUnoCheckVersion to 1.35.0-dev.28 so that uno-check provisions API-37.0, which should fix the above error. Additionally, `Uno.UI.BindingHelper.Android.netcoremobile.csproj` needed to be updated for current Android API levels: ever since Android 16 QPR2, Android API levels are a "major.minor" affair; it's not "API-37", it's "API-37.0". It's not "platforms\android-37\android.jar", it's "platforms\android-37.0\android.jar". Update the logic within `_CompileUnoJava` to use wildcards to locate `android.jar`. **Tests - iOS Skia > Build Samples App > Select Xcode** failed because the runner image had been updated since last time I looked to contain a "real" Xcode_26.5.app, not Xcode 26.5 Beta 2. Update `$(xCodeRoot)` accordingly. **Build - Skia Runtime Tests > Build Samples App > Publish Generic Binaries:** failed because we built for net10.0, but PublishPipelineArtifact was looking for net11.0 outputs. Try fixing this by using the new top-level `$(netCurrentTargetFramework)` and `$(netPreviousTargetFramework)` variables. Does it work? **Tests - Unit Tests > Run > Build unit tests solution filter** failed with: …\src\Uno.Analyzers.Tests\Uno.Analyzers.Tests.csproj : error NU1605: Warning As Error: Detected package downgrade: Microsoft.CodeAnalysis.Common from 4.14.0 to 4.0.0. Reference the package directly from the project to select a different version. …\src\Uno.Analyzers.Tests\Uno.Analyzers.Tests.csproj : error NU1605: Uno.Analyzers.Tests -> Microsoft.CodeAnalysis.CSharp.Workspaces 4.14.0 -> Microsoft.CodeAnalysis.Common (= 4.14.0) …\src\Uno.Analyzers.Tests\Uno.Analyzers.Tests.csproj : error NU1605: Uno.Analyzers.Tests -> Microsoft.CodeAnalysis.Common (>= 4.0.0) Update `Uno.Analyzers.Tests.csproj` to bump `$(CodeAnalysisVersionForAnalyzersTests)`=4.14.0 to fix the NU1605. Update `.azure-devops-tests-android-native.yml` and `.azure-devops-tests-templates.yml` to remove the installation of `platforms;android-35`. We're now using the [macOS-26 runner image][0], which has API-35, API-36, and API-37.0 already installed. [0]: https://github.com/actions/runner-images/blob/ef933bf3909a6c0f39801156845874c9e43ba768/images/macos/macos-26-Readme.md#android --- chore: Provide "real" ReferenceAssemblies for net11 The **Tests - Unit Tests > Run > Run unit tests** job is failing, and one of the reported errors is: Test method Uno.UI.SourceGenerators.Tests.DependencyObjectGeneratorTests.Given_DependencyObjectGenerator.TestNested threw exception: System.InvalidOperationException: Mismatch between number of diagnostics returned, expected "0" actual "3" Diagnostics: // error CS1705: Assembly 'Uno' with identity 'Uno, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' DiagnosticResult.CompilerError("CS1705").WithArguments("Uno", "Uno, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null", "System.Runtime, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Runtime", "System.Runtime, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"), … The cause of the problem is that `_Dotnet.Current` is returning reference assemblies for *.NET 10*, not .NET 11, largely because the [Microsoft.CodeAnalysis.Analyzer.Testing NuGet package][0] doesn't contain an entry for .NET 11, and presumably won't until *after* the release of .NET 11 in 2026-November. What do we do instead? "Fake it 'til you make it": the definition of [`ReferenceAssemblies.Net100`][1] is concise and straightforward; copy it, updating for .NET 11. Do the same for .NET 11 Android. [0]: https://www.nuget.org/packages/Microsoft.CodeAnalysis.Analyzer.Testing [1]: ttps://github.com/dotnet/roslyn-sdk/blob/cc62642b58a306b2560a2367f1a0c11167ea3b2b/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs#L1216-L1231 --- chore: avoid Task.Wait() on SkiaWasm **Tests - WebAssembly Skia > Run Runtime Tests *:** are failing under .NET 11: FocusMovesToNextCorrectElementWhenFocusCandidateElementCollapsed System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Runtime.CompilerServices.RuntimeFeature.ThrowIfMultithreadingIsNotSupported() at System.Threading.Tasks.Task.InternalWaitCore(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.InternalWait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait(TimeSpan timeout) at Microsoft.UI.Xaml.Tests.Common.EventTester`2[[Microsoft.UI.Xaml.UIElement, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null],[Microsoft.UI.Xaml.RoutedEventArgs, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]]..ctor(UIElement sender, Type senderType, String eventName, Action`2 action, EventTesterOptions options, Boolean setBVTflags) at Microsoft.UI.Xaml.Tests.Common.EventTester`2[[Microsoft.UI.Xaml.UIElement, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null],[Microsoft.UI.Xaml.RoutedEventArgs, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]]..ctor(UIElement sender, Type senderType, String eventName, Action`2 action, EventTesterOptions options) at Microsoft.UI.Xaml.Tests.Common.EventTester`2[[Microsoft.UI.Xaml.UIElement, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null],[Microsoft.UI.Xaml.RoutedEventArgs, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]]..ctor(UIElement sender, String eventName, Action`2 action) at Microsoft.UI.Xaml.Tests.Common.EventTester`2[[Microsoft.UI.Xaml.UIElement, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null],[Microsoft.UI.Xaml.RoutedEventArgs, Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null]]..ctor(UIElement sender, String eventName) at Uno.UI.RuntimeTests.MUX.Input.Focus.FocusHelper.EnsureFocusAsync(UIElement element, FocusState focusState, UInt32 Attempts) at Uno.UI.RuntimeTests.MUX.Input.Focus.FocusTests.FocusMovesToNextCorrectElementWhenFocusCandidateElementCollapsed() at Uno.UI.Samples.Tests.UnitTestsControl.<>c__DisplayClass74_2.<<ExecuteTestsForInstance>g__InvokeTestMethod|5>d.MoveNext() This is due to a change within .NET 11, in which `Task.InternalWaitCore()` was updated to throw `PlatformNotSupportedException` in wasm environments: * dotnet/runtime@a118808 * dotnet/runtime@25eb60e The "offending" `Task.Wait()` invocation was *already* wrapped within `!__WASM__` blocks, but these don't apply within `SamplesApp.Skia.WebAssembly.Browser`, as that uses *Skia* build variants of e.g. Uno.UI.RuntimeTests, not Wasm build variants. Update `EventTester.cs` to add an additional runtime check before the `Task.Wait()` invocations when running within a browser: // old and busted #if !__WASM__ task.Wait(); #endif // new hawtness #if !__WASM__ if (!ConditionalTestHelper.CurrentPlatform.HasFlag(RuntimeTestPlatforms.SkiaWasm)) { task.Wait(); } #endif This allows the `Task.Wait()` invocation to be avoided within a browser environment, allowing the tests to pass. --- chore: Uno.UI.RemoteControl.DevServer.Tests target .NET 11 **Tests - Unit Tests > Run > Run unit tests** is failing for `Uno.UI.RemoteControl.DevServer.Tests.dll`: failed WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished (49s 436ms) from C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\bin\Release\net11.0\Uno.UI.RemoteControl.DevServer.Tests.dll (net11.0|x64) Test method Uno.UI.RemoteControl.DevServer.Tests.AppLaunch.RealAppLaunchIntegrationTests.WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished threw exception: AwesomeAssertions.Execution.AssertionFailedException: Expected filtered.Any(e => e.Json.RootElement.TryGetProperty("EventName", out var n) && n.GetString() == eventName) to be True because Should contain event 'uno/dev-server/app-launch/connected', but found False. at AwesomeAssertions.Execution.FallbackTestFramework.Throw(String message) at AwesomeAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message) at AwesomeAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason) at AwesomeAssertions.Primitives.BooleanAssertions`1.BeTrue(String because, Object[] becauseArgs) at Uno.UI.RemoteControl.DevServer.Tests.Telemetry.TelemetryTestBase.AssertHasEvent(List`1 events, String eventName, String prefix) in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\Telemetry\TelemetryTestBase.cs:219 at Uno.UI.RemoteControl.DevServer.Tests.AppLaunch.RealAppLaunchIntegrationTests.WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\AppLaunch\RealAppLaunchIntegrationTests.cs:59 at Uno.UI.RemoteControl.DevServer.Tests.AppLaunch.RealAppLaunchIntegrationTests.WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\AppLaunch\RealAppLaunchIntegrationTests.cs:70 at Uno.UI.RemoteControl.DevServer.Tests.AppLaunch.RealAppLaunchIntegrationTests.WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\AppLaunch\RealAppLaunchIntegrationTests.cs:94 at Uno.UI.RemoteControl.DevServer.Tests.AppLaunch.RealAppLaunchIntegrationTests.WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\AppLaunch\RealAppLaunchIntegrationTests.cs:94 at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.TestMethodInfo.ExecuteInternalAsync(Object[] arguments, CancellationTokenSource timeoutTokenSource) in /_/src/Adapter/MSTestAdapter.PlatformServices/Execution/TestMethodInfo.cs:391 Log snippets from WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished: MyApp -> C:\Users\AzDevOps\AppData\Local\Temp\7727796b-706d-49ae-801a-ab43e63376f1\MyApp\bin\Debug\net10.0-desktop\MyApp.dll …⚠️ Connection not detected in logs, but test may still be successful. The real Skia app was built and launched successfully with devserver configuration. DevServer output: Uno.UI.RemoteControl.Host: eager-loaded 2 assemblies from 'C:\a\1\s\src\Uno.UI.RemoteControl.Host\bin\Release\net11.0' (0 failures). dbug: Uno.UI.RemoteControl.Host.Extensibility.AddIns[0] Found target frameworks for solution 'C:\Users\AzDevOps\AppData\Local\Temp\7727796b-706d-49ae-801a-ab43e63376f1\MyApp.sln': net10.0-desktop. … dotnet --info output: .NET SDK: Version: 10.0.105 What I think is happening is that the test project is built *for* .NET 10, *with* .NET 10, and something intermixed with all that is trying to load assemblies built for *.NET 11*. That feels like a recipe for failure, and explains the "⚠️ Connection not detected" message. A possible fix for that: update `SolutionHelper.cs` to do two things: 1. Update `dotnet` invocations to use `%DOTNET_INSTALL_DIR%\dotnet` when `%DOTNET_INSTALL_DIR%` is set, which it *is* on CI. 2. Update the generated app so that (a) the `.csproj` targets net11.0-* frameworks instead of the default net10.0-* frameworks, and (b) the generated `global.json` allows .NET 11 to be used. (1) should cause .NET 11 to be used to build the app, with (2) being a prerequisites to allow .NET 11 to be used to build the app. Update `RealAppLaunchIntegrationTests.cs` so that it resolves assemblies from the net11.0 directory. --- chore: DefaultRemoteControlProcessorFactory supports .NET 11 **Tests - Unit Tests > Run > Run unit tests** is failing for `Uno.UI.RemoteControl.DevServer.Tests.dll`: failed Telemetry_ProcessorDiscovery_Should_Load_Dependencies (22s 443ms) from C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\bin\Release\net11.0\Uno.UI.RemoteControl.DevServer.Tests.dll (net11.0|x64) Test method Uno.UI.RemoteControl.DevServer.Tests.Telemetry.TelemetryProcessorTests.Telemetry_ProcessorDiscovery_Should_Load_Dependencies threw exception: System.InvalidOperationException: Sequence contains no matching element at System.Linq.ThrowHelper.ThrowNoMatchException() at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) at Uno.UI.RemoteControl.DevServer.Tests.Telemetry.TelemetryProcessorTests.Telemetry_ProcessorDiscovery_Should_Load_Dependencies() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\Telemetry\TelemetryProcessorTests.cs:384 at Uno.UI.RemoteControl.DevServer.Tests.Telemetry.TelemetryProcessorTests.Telemetry_ProcessorDiscovery_Should_Load_Dependencies() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\Telemetry\TelemetryProcessorTests.cs:433 at Uno.UI.RemoteControl.DevServer.Tests.Telemetry.TelemetryProcessorTests.Telemetry_ProcessorDiscovery_Should_Load_Dependencies() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\Telemetry\TelemetryProcessorTests.cs:437 at Uno.UI.RemoteControl.DevServer.Tests.Telemetry.TelemetryProcessorTests.Telemetry_ProcessorDiscovery_Should_Load_Dependencies() in C:\a\1\s\src\Uno.UI.RemoteControl.DevServer.Tests\Telemetry\TelemetryProcessorTests.cs:437 at Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution.TestMethodInfo.ExecuteInternalAsync(Object[] arguments, CancellationTokenSource timeoutTokenSource) in /_/src/Adapter/MSTestAdapter.PlatformServices/Execution/TestMethodInfo.cs:391 Local repro command: dotnet build src/Uno.UI.RemoteControl.DevServer.Tests/Uno.UI.RemoteControl.DevServer.Tests.csproj && \ dotnet test --diagnostic --test-modules src/Uno.UI.RemoteControl.DevServer.Tests/bin/Debug/net11.0/Uno.UI.RemoteControl.DevServer.Tests.dll --filter "Name~Telemetry_ProcessorDiscovery_Should_Load_Dependencies" > o.txt 2>&1 After much beating my head against a wall, the useful sign was to compare to the output from running under .NET 10. *Note*: to get useful .NET 10 output, the test needs to actually fail, so force it: diff --git a/src/Uno.UI.RemoteControl.DevServer.Tests/Telemetry/TelemetryProcessorTests.cs b/src/Uno.UI.RemoteControl.DevServer.Tests/Telemetry/TelemetryProcessorTests.cs index ee293e8..5f4bba6331 100644 --- a/src/Uno.UI.RemoteControl.DevServer.Tests/Telemetry/TelemetryProcessorTests.cs +++ b/src/Uno.UI.RemoteControl.DevServer.Tests/Telemetry/TelemetryProcessorTests.cs @@ -380,6 +380,7 @@ public class TelemetryProcessorTests : TelemetryTestBase // This reproduces uno-private#1552 where the processor fails to load despite the dependency being present on disk telemetryProcessor.IsLoaded.Should().BeTrue($"Processor discovery should load dependencies located alongside the processor assembly, but got IsLoaded=false with LoadError: {telemetryProcessor.LoadError}"); telemetryProcessor.LoadError.Should().BeNull($"Processor discovery should not report load errors, but got: {telemetryProcessor.LoadError}"); + throw new Exception("Fail!"); } finally { Next, log file locations; when you need "moar input", look here! 1. `o.txt`, the output of `dotnet test` 2. `src/Uno.UI.RemoteControl.Host/bin/Debug/*/telemetry_processor_dependency_resolution*.log` 3. `src/Uno.UI.RemoteControl.DevServer.Tests/bin/Debug/*/TestResults/log_*` The useful breadcrumb when comparing `o.txt` between .NET 10 and .NET 11 invocations? The following message was present when running tests built for .NET 10 but not for .NET 11: dbug: Uno.UI.RemoteControl.Server.Processors.DefaultRemoteControlProcessorFactory[0] Discovery: Loading /var/folders/cx/nnhj5ww14xj10j5xclz6_9840000gn/T/uno-processor-test-bea9e61e6c5c4a5e8a2f682bcf469921/net10.0/Uno.Test.Processor.dll dbug: Uno.UI.RemoteControl.Server.Processors.DefaultRemoteControlProcessorFactory[0] Discovery: Registering Uno.UI.RemoteControl.TestProcessor.TelemetryTestProcessor Those messages led me to `DefaultRemoteControlProcessorFactory`, which had this fascinating code: var normalized = basePath.Replace('/', Path.DirectorySeparatorChar); #if NET10_0_OR_GREATER var candidate = Path.Combine(normalized, "net10.0"); #elif NET9_0_OR_GREATER var candidate = Path.Combine(normalized, "net9.0"); #else var candidate = normalized; #endif Noteably absent? `#if NET11_0_OR_GREATER` and a `Path.Combine()` that includes `net11.0`! What was happening is that we placed `Uno.Test.Processor.dll` into a `net11.0` directory, but that directory was never probed by `DefaultRemoteControlProcessorFactory`. Consequently, `Uno.Test.Processor.dll` was never loaded, which is why the test fails. Fix this by updating `DefaultRemoteControlProcessorFactory` to include a `NET11_0_OR_GREATER` block. @jonpryor: TODO for the inevitable .NET 12 migration: audit all use of `NET.*_OR_GREATER` to see if anything needs updating! --- chore: Build with $(windowsScaledPool)=Windows2025-20260622-1 **Build - Managed Binaries > Build > Building WinAppSDK and Graphics3DGL package binaries** is failing: C:\a\1\s\src\AddIns\Uno.WinUI.Graphics2DSK\Uno.WinUI.Graphics2DSK.Windows.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\a\1\s\src\Uno.UI.Toolkit\Uno.UI.Toolkit.Windows.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\a\1\s\src\AddIns\Uno.WinUI.Graphics3DGL\Uno.WinUI.Graphics3DGL.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found. Version 11.0.100-preview.5.26302.115 of the .NET SDK requires at least version 18.6.0 of MSBuild. The current available version of MSBuild is 18.4.0.7901. Change the .NET SDK specified in global.json to an older version that requires the MSBuild version currently available. The NuGetSdkResolver did not resolve this SDK because there was no version specified in the project or global.json. MSB4276: The default SDK resolver failed to resolve SDK "Microsoft.NET.Sdk" because directory "C:\Program Files\Microsoft Visual Studio\18\Enterprise\MSBuild\Sdks\Microsoft.NET.Sdk\Sdk" did not exist. The scenario is that we're using `msbuild` -- *not* `dotnet build` -- to build `Uno.WinUI.Graphics3DGL.csproj` and other projects, and MSBuild 18.6 is required to build `$(TargetFramework)`=net11.0 when using .NET 11 Preview 5. Update `$(windowsScaledPool)` to Windows2025-20260622-1, which is built from the [win25-vs2026/20260622.153][0] runner-images tag, which includes Visual Studio 2026 18.7.11911.148, and thus *should* likewise include *MSBuild* 18.7.11911.148. Hopefully this allows the **Build - Managed Binaries** stage to pass! [0]: https://github.com/actions/runner-images/blob/win25-vs2026/20260622.153/images/windows/Windows2025-VS2026-Readme.md#visual-studio-enterprise-2026 --- chore: create crash dumps for macOS Runtime Tests crashes **Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests** is *crashing*: build/test-scripts/macos-skia-runtime-tests.sh: line 21: 25417 Segmentation fault: 11 dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$TEST_RESULTS_FILE *Why?* No idea; we have no further log output. It doesn't crash locally. (Yet…) Follow the [xplat-minidump-generation][0] docs and export various environment variables so that "minidump"-related files are created in `BUILD_SOURCESDIRECTORY/build/uitests-failure-results`. This should allow "Publish Failed Tests Results" to publish the crash dumps, allowing further investigation. [0]: https://github.com/dotnet/runtime/blob/main/docs/design/coreclr/botr/xplat-minidump-generation.md --- src/SolutionTemplate is still on .NET 10: The problem: dotnet/macios#25867
**Tests - Screenshots > Screenshot Comparison > Build Test Comparer** is failing on CI: C:\a\1\s\src\Uno.UI.TestComparer\Uno.UI.TestComparer.csproj : error NU1510: Warning As Error: PackageReference System.Text.Json will not be pruned. This package is automatically available and does not need to be referenced explicitly. Remove the PackageReference item. C:\a\1\s\src\Uno.UI.TestComparer\Uno.UI.TestComparer.csproj : error NU1903: Warning As Error: Package 'SQLitePCLRaw.lib.e_sqlite3' 2.1.5 has a known high severity vulnerability, GHSA-2m69-gcr7-jv3q NU1510 can be fixed by removing the offending System.Text.Json package reference. @jonpryor doesn't know how to fix NU1903. What's pulling in the `SQLitePCLRaw.lib.e_sqlite3` reference is [Microsoft.AppCenter][0] > [SQLitePCLRaw.bundle_green][1] > [SQLitePCLRaw.lib.e_sqlite3][2], which has security vulnerabilities and no newer non-vulnerable replacmeent. [0]: https://www.nuget.org/packages/Microsoft.AppCenter/5.0.3#dependencies-body-tab [1]: https://www.nuget.org/packages/SQLitePCLRaw.bundle_green/ [2]: https://www.nuget.org/packages/SQLitePCLRaw.lib.e_sqlite3/
Context: #23622 Context: #23642 **Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests** regularly crashes on CI *when using macos-26*: info: Uno.UI.Samples.Tests.UnitTestsControl[0] Running test When_ExecuteScriptAsync_Has_No_Result() dbug: Uno.UI.Runtime.Skia.MacOS.MacOSNativeWebView[0] LoadHtmlString: <html><body><script>function testMe(){ }</script><div id='test' style='width: 100px; height: 100px; background-color: blue;' /></body></html> build/test-scripts/macos-skia-runtime-tests.sh: line 31: 70322 Segmentation fault: 11 dotnet SamplesApp.Skia.Generic.dll --runtime-tests=$TEST_RESULTS_FILE and as the .NET 11 bump updates `$(macOSVMImage)` to be macos-26 -- beecause only macos-26 has Xcode 26.5, which .NET 11 P5 requires -- for awhile it looked like this might be a .NET 11 issue. PR #23622 verified that this was in fact a macos-26 issue, unrelated to .NET 11. Update `.azure-devops-tests-macos-skia.yml` to run the **Tests - Desktop Skia MacOS** stage on $(vmMacImageTest) (macos-14) instead of $(macOSVMImage) (macos-26). This allows the tests to run without crashing on CI. *Note*: we are unable to locally reproduce the crash, though it *may* be addressed by #23642. Additionally, update `macos-skia-runtime-tests.sh` to explicitly log the ABI of the machine running the tests, as `macos-26` means different things between [GitHub Actions][0] (arm64!) > | **Image** | **Architecture** | **YAML Label** | > | --------------- | ----------------- |----------------| > | macOS 26 Arm64 | arm64 | `macos-26` or `macos-26-xlarge` | and [Azure DevOps][1] (x64!). > **macOS images updates** > > * The macOS 26 (Intel) Azure Pipelines hosted agent image is in public preview. > * … > * The macOS 15 Sequoia ARM64 limited public preview has been paused. (As far as @jonpryor can tell, Azure DevOps currently provides *no* arm64 build agents…) [0]: https://github.com/actions/runner-images/tree/f84258ba81f6e9f1edfaf7a83da4727921e85790#available-images [1]: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=macos-images%2Cyaml#macos-images-updates
The **Restore sync generator solution filter** step was failing: Error: C:\Program Files\dotnet\sdk\10.0.105\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(184,5): error NETSDK1045: The current .NET SDK does not support targeting .NET 11.0. Either target .NET 10.0 or lower, or use a version of the .NET SDK that supports .NET 11.0. Download the .NET SDK from https://aka.ms/dotnet/download [D:\a\uno\uno\src\Uno.Foundation\Uno.Foundation.Reference.csproj::TargetFramework=net11.0] Update `winappsdk-sync-apply.yml` et al to use `build/ci/net11/_global.json` so that .NET 11 is provisioned. Once that's fixed, we get two additional NuGet errors: src/Uno.WinAppSDKSyncGenerator/Uno.WinAppSDKSyncGenerator.csproj : error NU1903: Warning As Error: Package 'System.Security.Cryptography.Xml' 10.0.4 has a known high severity vulnerability, GHSA-37gx-xxp4-5rgx src/Uno.WinAppSDKSyncGenerator/Uno.WinAppSDKSyncGenerator.csproj : error NU1903: Warning As Error: Package 'System.Security.Cryptography.Xml' 10.0.4 has a known high severity vulnerability, GHSA-w3x6-4m5h-cxqf src/Uno.WinAppSDKSyncGenerator/Uno.WinAppSDKSyncGenerator.csproj : error NU1605: Warning As Error: Detected package downgrade: Microsoft.CodeAnalysis.VisualBasic.Workspaces from 4.14.0 to 4.11.0. Reference the package directly from the project to select a different version. Uno.WinAppSDKSyncGenerator -> Microsoft.CodeAnalysis 4.14.0 -> Microsoft.CodeAnalysis.VisualBasic.Workspaces (= 4.14.0) Uno.WinAppSDKSyncGenerator -> Microsoft.CodeAnalysis.VisualBasic.Workspaces (>= 4.11.0) Fix the NU1605 by setting `$(SyncGeneratorCodeAnalysisVersion)`=4.14.0. Fix the NU1903 by *adding* a package reference to `System.Security.Cryptography.Xml` 10.0.9, which is the current latest non-preview version of the package.
46cd386 to
a743bdd
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23603/wasm-skia-net9/index.html |
|
The build 221404 found UI Test snapshots differences: Details
|
Context: #23621 Context: #23603 PR #23621 added a WebView2Aot backend for `<WebView2/>` within `Uno.UI.Runtime.Skia.Win32`, and added support for a `UNO_WEBVIEW2_BACKEND` environment variable to switch between the backends. For Uno 7, remove support for the original Microsoft.Web.WebView2 backend. We'll stick with WebView2Aot going forward, which will reduce assembly size (only one backend), simplify maintenance (only one backend), and has support for Native AOT. Additionally, as the feature/breakingchanges branch is now on .NET 11 (#23603), which drops support for .NET 9, we no longer need to make the WebView2Aot NuGet reference conditional on .NET 10+. Cleanup `Uno.UI.Runtime.Skia.Win32` accordingly.
Context: #23621 Context: #23603 PR #23621 added a WebView2Aot backend for `<WebView2/>` within `Uno.UI.Runtime.Skia.Win32`, and added support for a `UNO_WEBVIEW2_BACKEND` environment variable to switch between the backends. For Uno 7, remove support for the original Microsoft.Web.WebView2 backend. We'll stick with WebView2Aot going forward, which will reduce assembly size (only one backend), simplify maintenance (only one backend), and has support for Native AOT. Additionally, as the feature/breakingchanges branch is now on .NET 11 (#23603), which drops support for .NET 9, we no longer need to make the WebView2Aot NuGet reference conditional on .NET 10+. Cleanup `Uno.UI.Runtime.Skia.Win32` accordingly.
Context: #22745 Context: unoplatform/uno.templates#1992 Context? 69cc392
It's that time of year again! .NET 11 previews are out; does Uno work with .NET 11? Let's find out!
Build system changes and notes:
Centralize NuGet package versions for the Microsoft.Build* and Microsoft.CodeAnalysis* NuGet packages.
Leave
FontFallbackPreprocessor.csprojtargeting net10.0, as this job never provisions .NET itself, and .NET 10 is pre-installed on that CI bot.Update
$(macOSVMImage)to usemacOS-26(up frommacOS-15). dotnet/macios in .NET 11 now requires Xcode 26.5, and only the macOS-26 runner-image provides Xcode 26.5.x.When it makes sense to do so, use
$(NetPrevious)and$(NetCurrent)instead of hardcoding target frameworks. When it doesn't make sense to do so: specifying NuGet package versions, which are normally only bumped when the .NET version changes, and it makes things clearer that these are related by using explicit .NET versions and not using$(Net*).Introduce new
$(NetPreviousAppleOSVersion)and$(NetCurrentAppleOSVersion)MSBuild properties to avoid hardcoding Apple OS versions.net11.0-ios and net11.0-tvos bump the minimum supported
$(SupportedOSPlatformVersion)value to 13.0.Bump
Microsoft.CodeAnalysis.CSharp.SourceGenerators.TestingNuGet package version to 1.1.3, so that we can use e.g.ReferenceAssemblies.Net.Net100.Bump
System.Security.Cryptography.XmlNuGet package version to 10.0.0, as newerMicrosoft.CodeAnalysisNuGet packages require that System.Security.Cryptography.Xml be >= 9.0.Bump NuGet Package versions for .NET 11 Android; resolves:
However, updating those package versions means we need to bump
$(SupportedOSPlatformVersion)to 24 (up from 21). Update that inUno.CrossTargetting.targets, and remove$(SupportedOSPlatformVersion)fromSamplesApp*.netcoremobile.csprojas those are "confusing noise"; they're not used, asUno.CrossTargetting.targetsalways replaces.Also update
//uses-sdk/@android:minSdkVersionin variousAndroidManifest.xmlto be at least 24.Some of the updated .NET 11 Android NuGet packages also broke API in various ways; update
UnoExploreByTouchHelper.cs/etc. to compensate.Update
src/Uno.UWP/Uno.netcoremobile.csprojto add an explicit@(PackageReference)to Xamarin.AndroidX.DocumentFile. This was previously implicitly brought in by [email protected], but we can't use that version anymore due to NU1703 warnings:The updated Xamarin.AndroidX.DocumentFile in turn has changes to nullability and obsoletions, requiring changes.
Fix NU1510 errors by removing
@(PackageReference)s for the mentioned packages: Microsoft.Extensions.Logging.Abstractions, Microsoft.CSharp, System.Formats.Asn1, System.Net.Http, System.Text.RegularExpressions.Set
$(AndroidLinkTool)=r8 in SamplesApp projects for net11.0-android. This works around a crash in r8. TODO: upstream URL.Reminder:
.azure-devops-tests-ios-skia-build.ymlmust be consistent withskia-ios-uitest-build.sh.Source code changes:
Apple platforms such as net11.0-ios26.5 have changed nullability of methods such as
NSObject.FromObject(). Compensate.While updating nullability, also update nearby logic errors.
UnoWKWebView.ProcessNavigation()callsrelativePath.Substring(1)ifrelativePathstarts with a/, but if it were to start with multiple slashes, the result would still start with a slash. UseresultPath.TrimStart('/')instead.SvgImageSource.OpenSvgBundle()could havefileExtension==""and would then callfileExtension.Substring(1), which could throw. UsefileExtension.TrimStart('.')instead.object.ToString()has long returned nullablestring?, but only now is it apparently impactingNativeCoreWebView2HttpRequestHeaders.iOS.cs. (Go figure.).NET 11 has new IDE0055 warnings for pre-existing constructs; in particular,
else ifmust be on the same line, and#region/#endregionmust have matching indentation.Update various files to fix these warnings.
The updated Xamarin.AndroidX.DocumentFile NuGet package has nullability changes. Adapt.
Trimmer fixes! TODO description.
Update
Given_BrowserKeyboardInputSource.csto useType.GetType(string)instead ofAppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(…).GetType(…)to fix IL2026 and IL2072 warnings:Update
SamplesApp.netcoreapp.csprojto ignore IL2026 warnings fromSystem.Data:Commands to migrate from net9+net10 to net10+net11, for posterity:
@(PackageReference)needs to be reviewed, as the above "in-place" updates mean that "net10.0" is using the same packages as "net9.0", which are almost certainly wrong. To easily find files to review:To sanity-check locally, try:
TODO:
RealAppLaunchIntegrationTests.cs._targetFrameworkto net11.0.Build - Managed Binaries > Build > Building Managed Binaries failed with:
Bump GlobalUnoCheckVersion to 1.35.0-dev.28 so that uno-check provisions API-37.0, which should fix the above error.
Additionally,
Uno.UI.BindingHelper.Android.netcoremobile.csprojneeded to be updated for current Android API levels: ever since Android 16 QPR2, Android API levels are a "major.minor" affair; it's not "API-37", it's "API-37.0". It's not"platforms\android-37\android.jar", it's
"platforms\android-37.0\android.jar". Update the logic within
_CompileUnoJavato use wildcards to locateandroid.jar.Tests - iOS Skia > Build Samples App > Select Xcode failed because the runner image had been updated since last time I looked to contain a "real" Xcode_26.5.app, not Xcode 26.5 Beta 2. Update
$(xCodeRoot)accordingly.Build - Skia Runtime Tests > Build Samples App > Publish Generic Binaries: failed because we built for net10.0, but PublishPipelineArtifact was looking for net11.0 outputs. Try fixing this by using the new top-level
$(netCurrentTargetFramework)and$(netPreviousTargetFramework)variables. Does it work?Tests - Unit Tests > Run > Build unit tests solution filter failed with:
Update
Uno.Analyzers.Tests.csprojto bump$(CodeAnalysisVersionForAnalyzersTests)=4.14.0 to fix the NU1605.Update
.azure-devops-tests-android-native.ymland.azure-devops-tests-templates.ymlto remove the installation ofplatforms;android-35. We're now using the macOS-26 runner image, which has API-35, API-36, and API-37.0 already installed.chore: Provide "real" ReferenceAssemblies for net11
The Tests - Unit Tests > Run > Run unit tests job is failing, and one of the reported errors is:
The cause of the problem is that
_Dotnet.Currentis returning reference assemblies for .NET 10, not .NET 11, largely because the Microsoft.CodeAnalysis.Analyzer.Testing NuGet package doesn't contain an entry for .NET 11, and presumably won't until after the release of .NET 11 in 2026-November.What do we do instead?
"Fake it 'til you make it": the definition of
ReferenceAssemblies.Net100is concise and straightforward; copy it, updating for .NET 11. Do the same for .NET 11 Android.chore: avoid Task.Wait() on SkiaWasm
*Tests - WebAssembly Skia > Run Runtime Tests : are failing under .NET 11:
This is due to a change within .NET 11, in which
Task.InternalWaitCore()was updated to throwPlatformNotSupportedExceptionin wasm environments:The "offending"
Task.Wait()invocation was already wrapped within!__WASM__blocks, but these don't apply withinSamplesApp.Skia.WebAssembly.Browser, as that uses Skia build variants of e.g. Uno.UI.RuntimeTests, not Wasm build variants.Update
EventTester.csto add an additional runtime check before theTask.Wait()invocations when running within a browser:This allows the
Task.Wait()invocation to be avoided within a browser environment, allowing the tests to pass.chore: Uno.UI.RemoteControl.DevServer.Tests target .NET 11
Tests - Unit Tests > Run > Run unit tests is failing for
Uno.UI.RemoteControl.DevServer.Tests.dll:Log snippets from WhenRealAppBuiltAndRunWithDevServer_RealConnectionEstablished:
What I think is happening is that the test project is built for .NET 10, with .NET 10, and something intermixed with all that is trying to load assemblies built for .NET 11.
That feels like a recipe for failure, and explains the "⚠️ Connection not detected" message.
A possible fix for that: update
SolutionHelper.csto do two things:Update
dotnetinvocations to use%DOTNET_INSTALL_DIR%\dotnetwhen%DOTNET_INSTALL_DIR%is set, which it is on CI.Update the generated app so that (a) the
.csprojtargets net11.0-* frameworks instead of the default net10.0-* frameworks, and (b) the generatedglobal.jsonallows .NET 11 to be used.(1) should cause .NET 11 to be used to build the app, with (2) being a prerequisites to allow .NET 11 to be used to build the app.
Update
RealAppLaunchIntegrationTests.csso that it resolves assemblies from the net11.0 directory.chore: DefaultRemoteControlProcessorFactory supports .NET 11
Tests - Unit Tests > Run > Run unit tests is failing for
Uno.UI.RemoteControl.DevServer.Tests.dll:Local repro command:
After much beating my head against a wall, the useful sign was to compare to the output from running under .NET 10. Note: to get useful .NET 10 output, the test needs to actually fail, so force it:
Next, log file locations; when you need "moar input", look here!
o.txt, the output ofdotnet testsrc/Uno.UI.RemoteControl.Host/bin/Debug/*/telemetry_processor_dependency_resolution*.logsrc/Uno.UI.RemoteControl.DevServer.Tests/bin/Debug/*/TestResults/log_*The useful breadcrumb when comparing
o.txtbetween .NET 10 and .NET 11 invocations? The following message was present when running tests built for .NET 10 but not for .NET 11:Those messages led me to
DefaultRemoteControlProcessorFactory, which had this fascinating code:Noteably absent?
#if NET11_0_OR_GREATERand aPath.Combine()that includesnet11.0!What was happening is that we placed
Uno.Test.Processor.dllinto anet11.0directory, but that directory was never probed byDefaultRemoteControlProcessorFactory. Consequently,Uno.Test.Processor.dllwas never loaded, which is why the test fails.Fix this by updating
DefaultRemoteControlProcessorFactoryto include aNET11_0_OR_GREATERblock.@jonpryor: TODO for the inevitable .NET 12 migration: audit all use of
NET.*_OR_GREATERto see if anything needs updating!chore: Build with $(windowsScaledPool)=Windows2025-20260622-1
Build - Managed Binaries > Build > Building WinAppSDK and Graphics3DGL package binaries is failing:
The scenario is that we're using
msbuild-- notdotnet build-- to buildUno.WinUI.Graphics3DGL.csprojand other projects, and MSBuild 18.6 is required to build$(TargetFramework)=net11.0 when using .NET 11 Preview 5.Update
$(windowsScaledPool)to Windows2025-20260622-1, which is built from the win25-vs2026/20260622.153 runner-images tag, which includes Visual Studio 2026 18.7.11911.148, and thus should likewise include MSBuild 18.7.11911.148.Hopefully this allows the Build - Managed Binaries stage to pass!
chore: create crash dumps for macOS Runtime Tests crashes
Tests - Desktop Skia macOS > Runtime Tests > Run macOS Runtime Tests is crashing:
Why? No idea; we have no further log output.
It doesn't crash locally. (Yet…)
Follow the xplat-minidump-generation docs and export various environment variables so that "minidump"-related files are created in
BUILD_SOURCESDIRECTORY/build/uitests-failure-results. This should allow "Publish Failed Tests Results" to publish the crash dumps, allowing further investigation.src/SolutionTemplate is still on .NET 10:
The problem: dotnet/macios#25867
GitHub Issue: closes #22745
PR Type:
✨ Feature
🏗️ Build or CI related changes
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.