Repository navigation
Conversation
There was a problem hiding this comment.
Pull request overview
Adds optional .NET 11 Preview 1 support behind EnablePreviewFeatures, while keeping default builds on .NET 9/10 and addressing new IDE0055 formatting warnings.
Changes:
- Switches
NetPrevious/NetCurrenttonet10.0/net11.0whenEnablePreviewFeatures=true. - Adds net11 target framework overrides (including Apple TFMs) and net11-specific Android package references/overrides.
- Applies formatting fixes (and one local suppression) to satisfy new IDE0055 warnings.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/targetframework-override.props | Adds net11 Apple TFM override mappings. |
| src/targetframework-override-noplatform.props | Ensures platform-agnostic projects resolve to net11.0 when overridden. |
| src/Uno.UWP/Devices/Sensors/Compass.Android.cs | Adjusts else if formatting to satisfy IDE0055. |
| src/Uno.UWP/Devices/Lights/Lamp.Android.cs | Suppresses IDE0055 in a method scope. |
| src/Uno.UI/UI/Xaml/Data/ItemIndexRange/ItemIndexRangeHelper.mux.cs | Adjusts else if formatting to satisfy IDE0055. |
| src/Uno.UI/UI/Xaml/Controls/TabView/TabView.cs | Adjusts else if formatting to satisfy IDE0055. |
| src/Uno.UI/UI/Xaml/Automation/Peers/SelectorItemAutomationPeer.cs | Adjusts else if formatting to satisfy IDE0055. |
| src/Uno.UI/Controls/BindableItemsView.Android.cs | Fixes #region/#endregion indentation to satisfy IDE0055. |
| src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj | Adds net11-android conditional package references. |
| src/Directory.Build.targets | Adds net11-android conditional PackageReference Update versions. |
| src/AddIns/Uno.UI.Maps/Uno.UI.Maps.netcoremobile.csproj | Adds net11-android conditional Google Play Services references. |
| src/AddIns/Uno.UI.GooglePlay/Uno.UI.GooglePlay.netcoremobile.csproj | Adds net11-android conditional Play Core reference. |
| src/AddIns/Uno.UI.Foldable/Uno.UI.Foldable.netcoremobile.csproj | Adds net11-android conditional AndroidX Window reference. |
| build/ci/net11/_global.json | Introduces a pinned .NET 11 preview SDK global.json for CI/local opt-in. |
| Directory.Build.props | Adds EnablePreviewFeatures-controlled selection of NetCurrent/NetPrevious. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| private void UpdateLampState() | ||
| { | ||
| #pragma warning disable IDE0055 |
There was a problem hiding this comment.
Disabling IDE0055 in-method can mask unrelated formatting issues in this scope. If suppression is necessary, please add a brief justification comment and consider narrowing the suppression to the smallest possible span (or addressing the specific formatting trigger) to keep formatting diagnostics useful.
| #pragma warning disable IDE0055 |
| #pragma warning restore CS0618 // Type or member is obsolete | ||
| } | ||
| } | ||
| #pragma warning restore IDE0055 |
There was a problem hiding this comment.
Disabling IDE0055 in-method can mask unrelated formatting issues in this scope. If suppression is necessary, please add a brief justification comment and consider narrowing the suppression to the smallest possible span (or addressing the specific formatting trigger) to keep formatting diagnostics useful.
c234280 to
d71722d
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
|
The build 198592 found UI Test snapshots differences: Details
|
|
The build 198592 found UI Test snapshots differences: Details
|
|
The build 198592 found UI Test snapshots differences: Details
|
d71722d to
cc3aa5b
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <!-- Some projects are platform-agnostic and should always be net10.0/net9.0 even if --> | ||
| <!-- we are building for android with net10.0-android/net9.0-android --> |
There was a problem hiding this comment.
The comment references hardcoded versions "net10.0/net9.0" and "net10.0-android/net9.0-android", but the code now uses the dynamic $(NetPrevious) and $(NetCurrent) properties. The comment should be updated to reflect this change for better maintainability. For example:
<!-- Some projects are platform-agnostic and should always be $(NetPrevious)/$(NetCurrent) even if -->
<!-- we are building for android with $(NetPrevious)-android/$(NetCurrent)-android -->| <!-- Some projects are platform-agnostic and should always be net10.0/net9.0 even if --> | |
| <!-- we are building for android with net10.0-android/net9.0-android --> | |
| <!-- Some projects are platform-agnostic and should always be $(NetPrevious)/$(NetCurrent) even if --> | |
| <!-- we are building for android with $(NetPrevious)-android/$(NetCurrent)-android --> |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
|
The build 198712 found UI Test snapshots differences: Details
|
cc3aa5b to
c9bf9ea
Compare
c9bf9ea to
93926d3
Compare
93926d3 to
4717c44
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <!-- Some projects are platform-agnostic and should always be net10.0/net9.0 even if --> | ||
| <!-- we are building for android with net10.0-android/net9.0-android --> | ||
| <!-- Such projects will import this props file and the TargetFrameworks property will update appropriately --> |
There was a problem hiding this comment.
The comment above this Choose block is now inaccurate: it says these projects are “always net10.0/net9.0”, but the logic has been generalized to $(NetPrevious) / $(NetCurrent) (which becomes net11/net10 when preview features are enabled). Update the comment to reflect the new behavior so future maintainers don’t assume net9/net10 are hard-coded.
| <!-- Some projects are platform-agnostic and should always be net10.0/net9.0 even if --> | |
| <!-- we are building for android with net10.0-android/net9.0-android --> | |
| <!-- Such projects will import this props file and the TargetFrameworks property will update appropriately --> | |
| <!-- Some projects are platform-agnostic and should always use the base --> | |
| <!-- $(NetPrevious)/$(NetCurrent) target frameworks, even if we are building --> | |
| <!-- for a platform-specific TFM like $(NetPrevious)-android/$(NetCurrent)-android. --> |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
4717c44 to
b9b1fd6
Compare
b9b1fd6 to
cac5c33
Compare
|
|
|
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 218 out of 218 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
LatestSupportedDotnetVersionis still set to 10, but this task now needs to locatenet11.0runtime assets/refs when building with .NET 11. As written, the search loops will never probenet11.0, which can prevent resolving the correctuno-runtimeandlib/net11.0directories for runtime-enabled packages. Update the constant (and its comment) so net11 assets are considered.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -117,25 +117,25 @@ How different SDK versions affect add-in discovery. | |||
|
|
|||
| | .NET SDK | TFM | Host Binary Location | `dotnet tool` R2R Support | Notes | | |||
| |----------|-----|---------------------|:-------------------------:|-------| | |||
| | 9.0 | `net9.0` | `tools/rc/host/net9.0/` | No | Current | | |||
| | 10.0 | `net10.0` | `tools/rc/host/net10.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | |||
| | 9.0 | `net10.0` | `tools/rc/host/net10.0/` | No | Current | | |||
| | 10.0 | `net11.0` | `tools/rc/host/net11.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | |||
| | Preview | `net{x}.0` | May not match installed SDKs | Varies | Edge case | | |||
| { | ||
| // Use the font even if the registration failed if the error code | ||
| // reports the fonts have already been registered. | ||
|
|
||
| return UIFont.FromName(font.PostScriptName, size); | ||
| return UIFont.FromName(font.PostScriptName!, size); | ||
| } |
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using System.Linq; |
|
|
|
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 218 out of 218 changed files in this pull request and generated 3 comments.
Comments suppressed due to low confidence (1)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
LatestSupportedDotnetVersionis still set to 10, but the comment says it must be net11.0 aligned. With the value at 10, net11.0 builds will never probeuno-runtime/net11.0/...(orlib/net11.0) even if those folders exist, and will fall back to net10.0 assets. Either bump the constant to 11 or revert the comment to match the intended max TFM being searched.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ```dotnetcli | ||
| dotnet new unoapp -tfm net10.0 | ||
| dotnet new unoapp -tfm net11.0 | ||
| ``` |
| @@ -117,25 +117,25 @@ How different SDK versions affect add-in discovery. | |||
|
|
|||
| | .NET SDK | TFM | Host Binary Location | `dotnet tool` R2R Support | Notes | | |||
| |----------|-----|---------------------|:-------------------------:|-------| | |||
| | 9.0 | `net9.0` | `tools/rc/host/net9.0/` | No | Current | | |||
| | 10.0 | `net10.0` | `tools/rc/host/net10.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | |||
| | 9.0 | `net10.0` | `tools/rc/host/net10.0/` | No | Current | | |||
| | 10.0 | `net11.0` | `tools/rc/host/net11.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | |||
| | Preview | `net{x}.0` | May not match installed SDKs | Varies | Edge case | | |||
| | Multiple installed | Depends on `global.json` | Must match pinned SDK | N/A | See section 13 | | |||
|
|
|||
| ### Risks | |||
|
|
|||
| | Risk | Scenario | Impact | Mitigation | | |||
| |------|----------|--------|------------| | |||
| | TFM mismatch | `dotnet --version` reports 10.0 but Host only has `net9.0` binary | Host not found | Scan available TFMs, pick best match (section 13 Phase 3) | | |||
| | TFM mismatch | `dotnet --version` reports 10.0 but Host only has `net10.0` binary | Host not found | Scan available TFMs, pick best match (section 13 Phase 3) | | |||
| | `global.json` pins older SDK | Project uses 9.0 but system default is 10.0 | Wrong TFM selected | Respect `global.json` SDK version, not `dotnet --version` | | |||
| | Preview SDK version string | `10.0.100-preview.1` | Parser fails | Robust version parsing, ignore preview suffix for TFM | | |||
|
|
|||
| ### Validation | |||
|
|
|||
| - [ ] .NET 9.0 installed → `net9.0` TFM, Host found | |||
| - [ ] .NET 10.0 installed → `net10.0` TFM, Host found | |||
| - [ ] `global.json` pins 9.0 with 10.0 installed → `net9.0` TFM used | |||
| - [ ] Host package only has `net9.0` but SDK is 10.0 → fallback to `net9.0` with warning | |||
| - [ ] .NET 9.0 installed → `net10.0` TFM, Host found | |||
| - [ ] .NET 10.0 installed → `net11.0` TFM, Host found | |||
| - [ ] `global.json` pins 9.0 with 10.0 installed → `net10.0` TFM used | |||
| - [ ] Host package only has `net10.0` but SDK is 10.0 → fallback to `net10.0` with warning | |||
| enable_dotnet_cache: true | ||
| enable_emsdk_cache: true | ||
| GlobalUnoCheckVersion: '1.34.0-dev.23' | ||
| DotNetSdkVersion: '10.0.105' | ||
| GlobalUnoCheckVersion: '1.35.0-dev.21' | ||
| DotNetSdkVersion: '11.0.100-preview.2.26159.112' | ||
|
|
|
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 228 out of 228 changed files in this pull request and generated 5 comments.
Comments suppressed due to low confidence (1)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
LatestSupportedDotnetVersionis still set to 10, which means the search loops won’t considernet11.0folders (e.g.,uno-runtime/net11.0/*orlib/net11.0). When building with .NET 11 this will prevent selecting the best matching runtime/reference assets. Update this constant (and its comment) to match the new current .NET version.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| using NavigationViewItemInvokedEventArgs = Microsoft.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs; | ||
| using NavigationViewPaneDisplayMode = Microsoft.UI.Xaml.Controls.NavigationViewPaneDisplayMode; | ||
| using System.Globalization; | ||
|
|
||
| namespace MUXControlsTestApp |
| | .NET SDK | TFM | Host Binary Location | `dotnet tool` R2R Support | Notes | | ||
| |----------|-----|---------------------|:-------------------------:|-------| | ||
| | 9.0 | `net9.0` | `tools/rc/host/net9.0/` | No | Current | | ||
| | 10.0 | `net10.0` | `tools/rc/host/net10.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | ||
| | 9.0 | `net10.0` | `tools/rc/host/net10.0/` | No | Current | | ||
| | 10.0 | `net11.0` | `tools/rc/host/net11.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | ||
| | Preview | `net{x}.0` | May not match installed SDKs | Varies | Edge case | |
| ## Android | ||
|
|
||
| Uno Platform apps run on devices running Android 5 and above, using the `net10.0-android` target framework. | ||
| Uno Platform apps run on devices running Android 5 and above, using the `net11.0-android` target framework. | ||
|
|
||
| At compile time, Uno Platform typically supports two versions of the Android SDK, the latest and the immediately previous (e.g. Android 15 and Android 14). It's generally recommended to use the latest version of the SDK. |
| <!-- .NET 10 RC2+ path structure: tools/net/illink.dll --> | ||
| <_UnoLinkerHintGeneratorILLinkerPath Condition="'$(ILLinkTasksAssembly)'!=''">$([System.IO.Path]::Combine($([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly))), '..', 'net'))</_UnoLinkerHintGeneratorILLinkerPath> | ||
| <!-- Pre-.NET 10 path structure: tools/net10.0/illink.dll --> | ||
| <!-- Pre-.NET 11 path structure: tools/net11.0/illink.dll --> | ||
| <_UnoLinkerHintGeneratorILLinkerPath_PreNet10 Condition="'$(ILLinkTasksAssembly)'!=''">$([System.IO.Path]::Combine($([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly))), '..', 'net$(TargetFrameworkVersion.Substring(1))'))</_UnoLinkerHintGeneratorILLinkerPath_PreNet10> | ||
|
|
||
| <!-- Fall back to pre-.NET 10 path if .NET 10 RC2+ path doesn't exist --> | ||
| <!-- Fall back to pre-.NET 11 path if .NET 11 path doesn't exist --> | ||
| <_UnoLinkerHintGeneratorILLinkerPath Condition="'$(ILLinkTasksAssembly)'!='' and !Exists($([System.IO.Path]::Combine($(_UnoLinkerHintGeneratorILLinkerPath), 'illink.dll')))">$(_UnoLinkerHintGeneratorILLinkerPath_PreNet10)</_UnoLinkerHintGeneratorILLinkerPath> |
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using System.Linq; | ||
| using System.IO; |
commented
Apr 13, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
commented
Apr 14, 2026
|
|
left a comment
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 228 out of 228 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| private const int LatestSupportedDotnetVersion = 10; // **MUST BE** net11.0 aligned (Keep this comment to ease upgrade to later versions of .NET) | ||
|
|
| throw new NotSupportedException($"Uno Platform on net11.0 does not support threading yet."); | ||
| } |
| | .NET SDK | TFM | Host Binary Location | `dotnet tool` R2R Support | Notes | | ||
| |----------|-----|---------------------|:-------------------------:|-------| | ||
| | 9.0 | `net9.0` | `tools/rc/host/net9.0/` | No | Current | | ||
| | 10.0 | `net10.0` | `tools/rc/host/net10.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | ||
| | 9.0 | `net10.0` | `tools/rc/host/net10.0/` | No | Current | | ||
| | 10.0 | `net11.0` | `tools/rc/host/net11.0/` | **Yes** (RID-specific tools) | Target for Phase 2 | | ||
| | Preview | `net{x}.0` | May not match installed SDKs | Varies | Edge case | |
| <!-- .NET 10 RC2+ path structure: tools/net/illink.dll --> | ||
| <_UnoLinkerHintGeneratorILLinkerPath Condition="'$(ILLinkTasksAssembly)'!=''">$([System.IO.Path]::Combine($([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly))), '..', 'net'))</_UnoLinkerHintGeneratorILLinkerPath> | ||
| <!-- Pre-.NET 10 path structure: tools/net10.0/illink.dll --> | ||
| <!-- Pre-.NET 11 path structure: tools/net11.0/illink.dll --> | ||
| <_UnoLinkerHintGeneratorILLinkerPath_PreNet10 Condition="'$(ILLinkTasksAssembly)'!=''">$([System.IO.Path]::Combine($([System.IO.Path]::GetDirectoryName($(ILLinkTasksAssembly))), '..', 'net$(TargetFrameworkVersion.Substring(1))'))</_UnoLinkerHintGeneratorILLinkerPath_PreNet10> | ||
|
|
||
| <!-- Fall back to pre-.NET 10 path if .NET 10 RC2+ path doesn't exist --> | ||
| <!-- Fall back to pre-.NET 11 path if .NET 11 path doesn't exist --> | ||
| <_UnoLinkerHintGeneratorILLinkerPath Condition="'$(ILLinkTasksAssembly)'!='' and !Exists($([System.IO.Path]::Combine($(_UnoLinkerHintGeneratorILLinkerPath), 'illink.dll')))">$(_UnoLinkerHintGeneratorILLinkerPath_PreNet10)</_UnoLinkerHintGeneratorILLinkerPath> |
commented
Apr 14, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
commented
Apr 14, 2026
|
|
left a comment
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 176 out of 176 changed files in this pull request and generated 8 comments.
Comments suppressed due to low confidence (2)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
LatestSupportedDotnetVersionis still set to 10 while the comment indicates it should be aligned with net11.0. This likely prevents the task from selecting net11 runtime assets/folders correctly; update the constant (or the comment/selection logic) so net11.0 is treated as supported.
build/ci/tests/.azure-devops-tests-unit-tests.yml:38- This job claims it needs the SDK to build the net10.0 target (netprevious), but it still installs the .NET 9 SDK. If netprevious is now net10.0, the installed SDK should be updated (and the displayName adjusted) to a .NET 10 SDK version; otherwise the net10 builds can fail on agents that only have net11 from global.json.
- task: UseDotNet@2
displayName: Install .NET 9 SDK
inputs:
packageType: 'sdk'
version: '9.0.300'
| var runtimeTargetFramework = | ||
| new Version(TargetFrameworkVersion) >= new Version("9.0") | ||
| ? "net9.0" | ||
| new Version(TargetFrameworkVersion) >= new Version("10.0") | ||
| ? "net10.0" | ||
| : "netstandard2.0"; | ||
|
|
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics.CodeAnalysis; | ||
| using System.Linq; |
| using NavigationView = Microsoft.UI.Xaml.Controls.NavigationView; | ||
| using NavigationViewItemInvokedEventArgs = Microsoft.UI.Xaml.Controls.NavigationViewItemInvokedEventArgs; | ||
| using NavigationViewPaneDisplayMode = Microsoft.UI.Xaml.Controls.NavigationViewPaneDisplayMode; | ||
| using System.Globalization; | ||
|
|
| windows2019HostedVMImage: 'windows-2019' | ||
| windows2022HostedVMImage: 'windows-2022' | ||
| windowsScaledPool: 'Windows2022-20250720-1' | ||
| windows2022HostedVMImage: 'Windows2025-20260406-1' |
| "sdk": { | ||
| "version": "11.0.100-preview.4.26230.115", | ||
| "allowPrerelease": true, | ||
| "rollForward": "disable" | ||
| }, |
| if (ApiInformation.IsTypePresent("Windows.UI.Xaml.Media.Animation.SuppressNavigationTransitionInfo, Uno.UI")) | ||
| { | ||
| frame.Navigate(sourcePageType, parameter, new SuppressNavigationTransitionInfo()); | ||
| } |
| displayName: 'Publish Generic Binaries' | ||
| retryCountOnTaskFailure: 3 | ||
| inputs: | ||
| targetPath: $(Build.SourcesDirectory)\src\SamplesApp\SamplesApp.Skia.Generic\bin\Release\net10.0 |
| displayName: 'Publish Wpf Islands Binaries' | ||
| retryCountOnTaskFailure: 3 | ||
| inputs: | ||
| targetPath: $(Build.SourcesDirectory)\src\SamplesApp\UnoIslandsSamplesApp.Skia.WPF\bin\Release\net9.0-windows |
commented
May 20, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
1 similar comment
commented
May 20, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
left a comment
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 177 out of 177 changed files in this pull request and generated 4 comments.
Comments suppressed due to low confidence (2)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
LatestSupportedDotnetVersionis still set to 10, but this task enumerates runtime folders fromLatestSupportedDotnetVersiondown toEarliestSupportedDotnetVersionwhen selectinguno-runtime/netX.0/...assets. With net11 support, this should be bumped to 11 (and the comment updated accordingly), otherwise net11-specific runtime assets will never be discovered.
src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerHintGeneratorTask.cs:403runtimeTargetFrameworkis hardcoded tonet10.0for anyTargetFrameworkVersion >= 10.0. When targeting net11, this will rewrite paths touno-runtime/net10.0/...instead ofuno-runtime/net11.0/..., which looks inconsistent with the newly added net11 runtime folders in the nuspecs. Consider selectingnet11.0whenTargetFrameworkVersion >= 11.0(or derivingnet{TargetFrameworkVersion}) so net11 builds pick the correct runtime assets.
| displayName: 'Publish Generic Binaries' | ||
| retryCountOnTaskFailure: 3 | ||
| inputs: | ||
| targetPath: $(Build.SourcesDirectory)\src\SamplesApp\SamplesApp.Skia.Generic\bin\Release\net10.0 |
| displayName: 'Publish Wpf Islands Binaries' | ||
| retryCountOnTaskFailure: 3 | ||
| inputs: | ||
| targetPath: $(Build.SourcesDirectory)\src\SamplesApp\UnoIslandsSamplesApp.Skia.WPF\bin\Release\net9.0-windows |
| <NetCurrentNetCoreMobile>$(NetCurrent)-android;$(NetCurrent)-ios26.0;$(NetCurrent)-maccatalyst26.0;$(NetCurrent)-tvos26.0</NetCurrentNetCoreMobile> | ||
| <NetPreviousNetCoreApple>$(NetPrevious)-ios18.0;$(NetPrevious)-maccatalyst18.0;$(NetPrevious)-tvos18.0</NetPreviousNetCoreApple> | ||
| <NetPreviousAppleOSVersion>26.0</NetPreviousAppleOSVersion> | ||
| <NetCurrentAppleOSVersion>26.4</NetCurrentAppleOSVersion> |
| windows2019HostedVMImage: 'windows-2019' | ||
| windows2022HostedVMImage: 'windows-2022' | ||
| windowsScaledPool: 'Windows2022-20250720-1' | ||
| windows2022HostedVMImage: 'Windows2025-20260406-1' |
commented
May 21, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
left a comment
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 179 out of 179 changed files in this pull request and generated 2 comments.
Comments suppressed due to low confidence (1)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
- LatestSupportedDotnetVersion is still set to 10, so when targeting net11.0 this task will never probe for
uno-runtime/net11.0/...(orlib/net11.0) and may incorrectly fall back to net10.0 assets. Update the constant (and any related logic) so net11 runtime assets are discoverable, otherwise net11 builds can pick the wrong binaries.
| unoRuntimeIdentifier = unoRuntimeIdentifier.ToLowerInvariant(); | ||
|
|
||
| var runtimeTargetFramework = | ||
| new Version(TargetFrameworkVersion) >= new Version("9.0") | ||
| ? "net9.0" | ||
| new Version(TargetFrameworkVersion) >= new Version("10.0") | ||
| ? "net10.0" | ||
| : "netstandard2.0"; | ||
|
|
| <NetCurrentNetCoreMobile>$(NetCurrent)-android;$(NetCurrent)-ios26.0;$(NetCurrent)-maccatalyst26.0;$(NetCurrent)-tvos26.0</NetCurrentNetCoreMobile> | ||
| <NetPreviousNetCoreApple>$(NetPrevious)-ios18.0;$(NetPrevious)-maccatalyst18.0;$(NetPrevious)-tvos18.0</NetPreviousNetCoreApple> | ||
| <NetPreviousAppleOSVersion>26.0</NetPreviousAppleOSVersion> | ||
| <NetCurrentAppleOSVersion>26.4</NetCurrentAppleOSVersion> |
commented
May 21, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
1 similar comment
commented
May 21, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
left a comment
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 179 out of 179 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/SourceGenerators/Uno.UI.Tasks/RuntimeAssetsSelector/RuntimeAssetsSelectorTask.cs:33
LatestSupportedDotnetVersionis still set to 10 while the comment says it must be net11-aligned. This constant is used to probeuno-runtime/netX.0/...andlib/netX.0folders; leaving it at 10 will prevent net11 assets from being discovered, likely breaking net11 builds. Update it to 11 (or compute it fromTargetFrameworkVersion/NetCurrentso it won’t need manual bumps next preview).
| cd $BUILD_SOURCESDIRECTORY/src/SamplesApp/SamplesApp.Skia.netcoremobile | ||
|
|
||
| dotnet build -f net9.0-ios18.0 -c Release -p:UnoTargetFrameworkOverride=net9.0-ios18.0 -p:UNO_DISABLE_ANALYZERS_IN_SAMPLES=true /bl:$BUILD_ARTIFACTSTAGINGDIRECTORY/skia-ios-netcoremobile-sampleapp.binlog | ||
| dotnet build -f net10.0-ios26.4 -c Release -p:UnoTargetFrameworkOverride=net10.0-ios26.4 -p:UNO_DISABLE_ANALYZERS_IN_SAMPLES=true /bl:$BUILD_ARTIFACTSTAGINGDIRECTORY/skia-ios-netcoremobile-sampleapp.binlog |
commented
May 21, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
1 similar comment
commented
May 21, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
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: * 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.4, and only the [macOS-26 runner-image][0] provides Xcode 26.4.x. * Update `$(windowsScaledPool)`to use `Windows2025-20260406-1`. The **Building WinAppSDK and Graphics3DGL package binaries** and **BuildMSIX** steps failed on CI because .NET 11 requires MSBuild 18, which in turn requires Visual Studio 2026. The prior `Windows2022*` bots only have Visual Studio *2022*, resulting in: Version 11.0.100-preview.2.26159.112 of the .NET SDK requires at least version 18.0.0 of MSBuild. The current available version of MSBuild is 17.14.14.31908. Change the .NET SDK specified in global.json to an older version that requires the MSBuild version currently available. This also requires updating `.azure-devops-tests-winappsdk.yml` to use *pool name* `$(windowsScaledPool)` instead of *image name* `$(windows2022HostedVMImage)`, *Note*: *pool names* have a `$(…Pool)` suffix, and need to be used as `pool: $(…Pool)`, while *image names* have a `$(…VMImage)` suffix and are used as `pool: vmImage: $(…VMImage)`. * When it makes sense to do so, use `$(NetPrevious)` and `$(NetCurrent)` instead of hardcoding target frameworks. * Introduce new `$(NetPreviousAppleOSVersion)` and `$(NetCurrentAppleOSVersion)` MSBuild properties to avoid hardcoding Apple OS versions. * net11.0-ios and net11-tvos bump the minimum supported `$(SupportedOSPlatformVersion)` value to 13.0. * `skia-ios-uitest-build.sh` needs to target `net10.0-ios26.4` so that it uses the same Xcode version as net11.0-ios26.4. Fixes: error : This version of .NET for iOS (26.0.11017) requires Xcode 26.0. * Duplicate various `<ItemGroup/>`s to add support for net11.0*. (Duplicate instead of update existing item groups so that if in the future we need to e.g. change package versions, we can do so with minimal noise.) * 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) * Bump `Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing` NuGet package version to 1.1.3, so that we can use e.g. `ReferenceAssemblies.Net.Net100`. * However, updating those package versions means we need to bump `$(SupportedOSPlatformVersion)` to 23 (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. * Some of the updated .NET 11 Android NuGet packages also broke API in various ways; update `UnoExploreByTouchHelper.cs` to compensate. * 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. * Reminder: `.azure-devops-tests-ios-skia-build.yml` must be consistent with `skia-ios-uitest-build.sh`, and Source code changes: * Apple platforms such as net11.0-ios26.4 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. * 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.4/g' $file ; done git grep -l net11.0-tvos26.0 | while read file ; do sed -i '' 's/net11.0-tvos26.0/net11.0-tvos26.4/g' $file ; done git grep -l net11.0-maccatalyst26.0 | while read file ; do sed -i '' 's/net11.0-maccatalyst26.0/net11.0-maccatalyst26.4/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
| public class RuntimeAssetsSelectorTask_v0 : Microsoft.Build.Utilities.Task | ||
| { | ||
| private const int LatestSupportedDotnetVersion = 10; // **MUST BE** net10.0 aligned (Keep this comment to ease upgrade to later versions of .NET) | ||
| private const int LatestSupportedDotnetVersion = 10; // **MUST BE** net11.0 aligned (Keep this comment to ease upgrade to later versions of .NET) |
commented
May 22, 2026
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22742/wasm-skia-net9/index.html |
commented
Jun 16, 2026
|
Superseded by #23479. (Was getting some weird merge conflicts; felt it was easier to start afresh.) |
Context: #22745
Context? 69cc392
It's that time of year again! .NET 11 previews are out;
does Uno work with .NET 11? Let's find out!
Changes:
Apple platforms such as net11.0-ios26.2 have changed nullability
of methods such as
NSObject.FromObject(). Compensate.object.ToString()has long returned nullablestring?, butonly now is it apparently impacting
NativeCoreWebView2HttpRequestHeaders.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.
Update
$(windowsScaledPool)to useWindows2025-20260406-1.The Building WinAppSDK and Graphics3DGL package binaries step
failed on CI because .NET 11 requires MSBuild 18, which in turn
requires Visual Studio 2026. The previous
Windows2022*botsonly have Visual Studio 2022, causing a build error:
When it makes sense to do so, use
$(NetPrevious)and$(NetCurrent)instead of hardcoding target frameworks.Introduce new
$(NetPreviousAppleOSVersion)and$(NetCurrentAppleOSVersion)MSBuild properties to avoidhardcoding Apple OS versions.
net11.0-ios and net11-tvos bump the minimum supported
$(SupportedOSPlatformVersion)value to 13.0.Duplicate various
<ItemGroup/>s to add support for net11.0*.(Duplicate instead of update existing item groups so that if in
the future we need to e.g. change package versions, we can do so
with minimal noise.)
Bump NuGet Package versions for .NET 11 Android; resolves:
However, updating those package versions means we need to bump
$(SupportedOSPlatformVersion)to 23 (up from 21).Update that in
Uno.CrossTargetting.targets, and remove$(SupportedOSPlatformVersion)fromSamplesApp*.netcoremobile.csprojas those are "confusing noise";they're not used, as
Uno.CrossTargetting.targetsalways replaces.Some of the updated .NET 11 Android NuGet packages also broke API
in various ways; update
UnoExploreByTouchHelper.csto compensate.Fix NU1510 errors by removing
@(PackageReference)s for thementioned packages: Microsoft.CSharp, System.Formats.Asn1,
System.Net.Http, System.Text.RegularExpressions.
Trimmer fixes! TODO description.
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:
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
PR Type:
What is the current behavior? 🤔
Only target frameworks for .NET 9.0 and .NET 10.0 are built.
What is the new behavior? 🚀
When
$(EnablePreviewFeatures)=true, then target frameworks for .NET 10 and .NET 11 are built. (Target frameworks for .NET 9 is not built.)PR Checklist ✅
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.