Repository navigation
chore: Update to .NET 11 Preview 6 - #23776
Conversation
|
|
dcc1b93 to
b61dc02
Compare
|
|
caac093 to
fc13f42
Compare
|
The build 222797 found UI Test snapshots differences: Details
|
|
The build 222844 found UI Test snapshots differences: Details
|
|
The build 222884 found UI Test snapshots differences: Details
|
0f65017 to
ccf3978
Compare
|
The build 222914 found UI Test snapshots differences: Details
|
Context: #23776 Context: https://dev.azure.com/uno-platform/Uno%20Platform/_build/results?buildId=222914&view=logs&j=76c7a511-c4f7-597f-21cf-4ad98ff8d48b&t=b8ba6e51-652c-5e3f-39b0-169c14b728df Context: bced91b The CI for #23776 fails in **Build - Managed Binaries > Build > Generate NuGet Packages**, in ways that seem inexplicable, e.g. EXEC : error : Removed property Microsoft.UI.Xaml.DependencyObject Uno.UI.Controls.Legacy.Primitives.ProgressRingTemplateSettings::TemplatedParent() not found in ignore set. [C:\a\1\s\Build\Uno.UI.Build.csproj] That type isn't changed by #23776. Try an empty commit atop commit bced91b. Does It Build™?
Context: #23776 Context: https://dev.azure.com/uno-platform/Uno%20Platform/_build/results?buildId=222914&view=logs&j=76c7a511-c4f7-597f-21cf-4ad98ff8d48b&t=b8ba6e51-652c-5e3f-39b0-169c14b728df Context: bced91b The CI for #23776 fails in **Build - Managed Binaries > Build > Generate NuGet Packages**, in ways that seem inexplicable, e.g. EXEC : error : Removed property Microsoft.UI.Xaml.DependencyObject Uno.UI.Controls.Legacy.Primitives.ProgressRingTemplateSettings::TemplatedParent() not found in ignore set. [C:\a\1\s\Build\Uno.UI.Build.csproj] That type isn't changed by #23776. Try an meaningless commit atop commit bced91b. Does It Build™?
2f9c128 to
d2f8226
Compare
|
The build 223043 found UI Test snapshots differences: Details
|
c60a186 to
7a87eb7
Compare
|
The build 223114 found UI Test snapshots differences: Details
|
7a87eb7 to
aba2b1c
Compare
|
The build 223278 found UI Test snapshots differences: Details
|
aba2b1c to
c8ee447
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23776/wasm-skia-net9/index.html |
|
The build 224512 found UI Test snapshots differences: Details
|
|
|
There was a problem hiding this comment.
Pull request overview
This PR updates the Uno repo’s .NET 11 support baseline to .NET 11 SDK Preview 6 and aligns related templates, CI, build scripts, and package pins (notably SkiaSharp and AndroidX) so the codebase and templates continue to build under the net11 “current” lane.
Changes:
- Bump CI/tooling pins to 11.0.100-preview.6.26359.118 and refresh key dependency versions (SkiaSharp, AndroidX, telemetry).
- Update solution templates and template test scripts to target net11.0 (and net11 platform TFMs), including updated Android min
SupportedOSPlatformVersion. - Adjust Skia AppleUIKit TextBox selection interop and improve linker-hints generator process output/error handling for updated linker behavior.
Reviewed changes
Copilot reviewed 62 out of 62 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Uno.UWP/Uno.netcoremobile.csproj | AndroidX DocumentFile version bump for net11 Android. |
| src/Uno.UI.RuntimeTests/Tests/HotReload/Frame/HRApp/Uno.UI.RuntimeTests.HRApp.Skia.csproj | Update SkiaSharp package versions used by HR runtime test app. |
| src/Uno.UI.RuntimeTests/Tests/AssemblyLoadContext/AlcApp/Uno.UI.RuntimeTests.AlcApp.csproj | Update SkiaSharp package versions used by ALC runtime test app. |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/README.md | Document new SkiaSharp version for dylib fetch script. |
| src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/getSkiaSharpDylib.sh | Default SkiaSharp native assets version bump. |
| src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/SinglelineInvisibleTextBoxView.cs | Route selection range access through updated helper API. |
| src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/NativeTextSelection.cs | Update objc_msgSendSuper interop for NET11_0_OR_GREATER. |
| src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Controls/TextBox/MultilineInvisibleTextBoxView.cs | Route selection range access through updated helper API. |
| src/Uno.UI.RemoteControl.Server/Uno.UI.RemoteControl.Server.csproj | Update Uno.DevTools.Telemetry package version. |
| src/Uno.UI.RemoteControl.Host/Uno.UI.RemoteControl.Host.csproj | Update Uno.DevTools.Telemetry package version. |
| src/Uno.UI.RemoteControl.DevServer.Tests/Uno.UI.RemoteControl.DevServer.Tests.csproj | Update Uno.DevTools.Telemetry package version (test-only). |
| src/Uno.Sdk/targets/Uno.Common.Android.targets | Change default Android SupportedOSPlatformVersion to 24.0. |
| src/Uno.Sdk/packages.json | Refresh pinned package groups/overrides for net11 lane. |
| src/SourceGenerators/Uno.UI.Tasks/LinkerHintsGenerator/LinkerHintGeneratorTask.cs | Improve linker invocation args + stdout/stderr capture/reporting. |
| src/SourceGenerators/Uno.UI.SourceGenerators/Uno.UI.SourceGenerators.csproj | Update Uno.DevTools.Telemetry package version. |
| src/SourceGenerators/Uno.UI.SourceGenerators.Tests/_Dotnet.cs | Update ref pack identities for .NET 11 preview 6 + Android ref pack. |
| src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.csproj | Move template TFMs from net10 to net11. |
| src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Windows/UnoAppWinUILinuxValidation.Windows.csproj | Move Windows head TFM to net11. |
| src/SolutionTemplate/UnoAppWinUILinuxValidation/UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer/UnoAppWinUILinuxValidation.Skia.Linux.FrameBuffer.csproj | Move Skia head TFM to net11. |
| src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI/UnoAppWinUI.csproj | Move template TFMs to net11 + bump Android supported OS version. |
| src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Windows/UnoAppWinUI.Windows.csproj | Move Windows head TFM to net11. |
| src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Skia.Linux.FrameBuffer/UnoAppWinUI.Skia.Linux.FrameBuffer.csproj | Move Skia head TFM to net11 + update SkiaSharp packages. |
| src/SolutionTemplate/UnoAppWinUI/UnoAppWinUI.Mobile/UnoAppWinUI.Mobile.csproj | Move mobile TFMs to net11 and align per-TFM properties. |
| src/SolutionTemplate/MyUnoLib2/MyUnoLib2.csproj | Move library template TFMs to net11. |
| src/SolutionTemplate/MyUnoLib/MyUnoLib.csproj | Move library template TFMs to net11. |
| src/SolutionTemplate/MyCrossRuntimeLib/MyCrossRuntimeLib/MyCrossRuntimeLib.Wasm.csproj | Move Wasm head TFM to net11. |
| src/SolutionTemplate/MyCrossRuntimeLib/MyCrossRuntimeLib/MyCrossRuntimeLib.Skia.csproj | Move Skia head TFM to net11. |
| src/SolutionTemplate/MyCrossRuntimeLib/MyCrossRuntimeLib/MyCrossRuntimeLib.csproj | Move multi-target TFMs to net11. |
| src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Wasm/MyAppXamlTrim.Wasm.csproj | Move Wasm trim template TFM to net11. |
| src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Skia.Linux.FrameBuffer/MyAppXamlTrim.Skia.Linux.FrameBuffer.csproj | Move Skia trim template TFM to net11. |
| src/SolutionTemplate/MyAppXamlTrim/MyAppXamlTrim.Mobile/MyAppXamlTrim.Mobile.csproj | Move mobile trim template TFMs to net11 + raise Android supported OS version. |
| src/SolutionTemplate/5.6/uno56netcurrent/uno56netcurrent/uno56netcurrent.csproj | Move “netcurrent” template TFMs to net11. |
| src/SolutionTemplate/5.6/uno56netcurrent/uno56netcurrent/Properties/launchSettings.json | Update launchSettings paths to net11 output folder. |
| src/SolutionTemplate/5.6/uno56net9win32/uno56net9win32/uno56net9win32.csproj | Move desktop template TFM to net11. |
| src/SolutionTemplate/5.6/uno56net9win32/uno56net9win32/Properties/launchSettings.json | Update launchSettings paths to net11 output folder. |
| src/SolutionTemplate/5.6/uno56droidioswasmskia/UnoLibrary1/UnoLibrary1.csproj | Move multi-target TFMs to net11. |
| src/SolutionTemplate/5.6/uno56droidioswasmskia/Uno56NugetLibrary/Uno56NugetLibrary.csproj | Move multi-target TFMs to net11. |
| src/SolutionTemplate/5.6/uno56droidioswasmskia/uno56droidioswasmskia/uno56droidioswasmskia.csproj | Move app template TFMs to net11. |
| src/SolutionTemplate/5.3/uno53net9Lib/uno53net9Lib.csproj | Move template TFMs to net11. |
| src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj | Move template TFMs to net11 + add UnoFeaturesOverride hook + update validation target conditions. |
| src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/Properties/launchSettings.json | Update launchSettings paths to net11 output folder. |
| src/SolutionTemplate/5.3/uno53AppWithLib/uno53lib/uno53lib.csproj | Move library template TFMs to net11. |
| src/SolutionTemplate/5.3/uno53AppWithLib/uno53emptylib/uno53emptylib.csproj | Move library template TFMs to net11. |
| src/SolutionTemplate/5.3/uno53AppWithLib/uno53AppWithLib/uno53AppWithLib.csproj | Move app template TFMs to net11 + update validation conditions. |
| src/SolutionTemplate/5.3/uno53AppWithLib/uno53AppWithLib/Properties/launchSettings.json | Update launchSettings paths to net11 output folder. |
| src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj | Update AndroidX/Material versions for net11 Android in SamplesApp. |
| src/Directory.Build.targets | Bump SkiaSharp/HarfBuzz/ICU versions + net11 SystemEvents preview version. |
| src/AddIns/Uno.UI.Svg/buildTransitive/Uno.WinUI.Svg.targets | Update error message minimum SkiaSharp version text. |
| src/AddIns/Uno.UI.Lottie/buildTransitive/Uno.WinUI.Lottie.targets | Update error message minimum SkiaSharp/Skottie version text. |
| doc/articles/features/using-the-uno-sdk.md | Document updated Android SupportedOSPlatformVersion default. |
| doc/articles/features/using-skia-desktop.md | Document updated SkiaSharp version pin (and related guidance). |
| doc/articles/features/Lottie.md | Update Lottie doc minimum SkiaSharp package versions. |
| build/test-scripts/run-netcore-mobile-template-tests.ps1 | Update template test TFMs to net11 + switch to UnoFeaturesOverride. |
| build/test-scripts/run-net7-template-linux.ps1 | Update net11 Wasm/desktop publish test TFMs + align SkiaSharp version. |
| build/nuget/Uno.WinUI.Svg.nuspec | Update SkiaSharp dependency versions in nuspec. |
| build/nuget/Uno.WinUI.Lottie.nuspec | Update SkiaSharp dependency versions in nuspec. |
| build/nuget/Uno.WinUI.Graphics2DSK.nuspec | Update SkiaSharp dependency versions in nuspec. |
| build/ci/tests/.azure-devops-tests-android-nativeaot-skia-build.yml | CI: publish with updated SkiaSharpVersion override. |
| build/ci/tests/.azure-devops-tests-android-coreclr-skia-build.yml | CI: publish with updated SkiaSharpVersion override. |
| build/ci/net11/_global.json | Pin net11 CI SDK/tool version to preview 6. |
| .vsts-ci.yml | Update Xcode root + UnoCheck + .NET 11 preview 6 SDK pin. |
| .vsts-ci-docs.yml | Update UnoCheck pin (but SDK pin appears not updated yet). |
💡 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-23776/wasm-skia-net9/index.html |
22caa2f to
82f0d82
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23776/wasm-skia-net9/index.html |
|
The build 224580 found UI Test snapshots differences: Details
|
|
|
82f0d82 to
c8d0178
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23776/wasm-skia-net9/index.html |
|
The build 224705 found UI Test snapshots differences: Details
|
|
|
Context: #23626 Context: dotnet/macios#25867 Context: dotnet/macios@4176951 Context: https://github.com/dotnet/macios/blob/8143f0389324a8c7dafcf30fb887eec32db43055/src/Foundation/NSObject2.cs#L753-L776 Context: https://github.com/dotnet/macios/releases/tag/dotnet-11.0.1xx-preview6-11720 Update version numbers accordingly. Build system changes and notes: * dotnet/macios on .NET 11 Preview 6 requires Xcode 26.6! * Bump `@(PackageReference)`s for `Uno.DevTools.Telemetry` to 1.3.3. This fixes **Tests - Add-in Version Alignment information**: == Case 1 latent (1): add-in needs higher than host AND bundles a copy in its loadable dir… • Uno.DevTools.Telemetry host loaded v1.3.0.0 referenced by Uno.UI.RemoteControl.Server add-in needs v1.3.3.0 add-in bundles v1.3.3.0 (Uno.UI.HotDesign) * Android now requires `$(SupportedOSPlatformVersion)` >= 24. Update where appropriate. Avoids: error XA4216: The deployment target '21' is not supported (the minimum is '24.0'). Please increase the $(SupportedOSPlatformVersion) property value in your project file. Source code changes: * In .NET for iOS in .NET 11, `NSObject.SuperHandle` is now `[Obsolete]`. Update use of `.SuperHandle` on .NET 11+ to avoid the CS0618. See also dotnet/macios@41769516. To sanity-check locally, try: dotnet build -f "net11.0-ios" -c Release "-p:UnoTargetFrameworkOverride=net11.0-ios" \ -p:UNO_DISABLE_ANALYZERS_IN_SAMPLES=true -bl \ src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj TODO: * #23626 mentions that wasm on .NET 11 Preview 6 *breaks ABI* from previous versions, resulting in *linker errors* when building. We'll need new Uno.icu packages and an updated SkiaSharp to build on WebAssembly. * Update **Tests - Templates** to build for and run on .NET 11. Now that dotnet/macios#25867 has been fixed, this should now be possible. ~~ NuGet Package Versions ~~ When building some projects with a target framework of e.g. `net11.0`, the build may fail with: error NU1605: Warning As Error: Detected package downgrade: Xamarin.AndroidX.AppCompat from 1.7.1.3 to 1.7.1.1. Reference the package directly from the project to select a different version. error NU1605: uno53net9blank -> Uno.WinUI.Runtime.Skia.Android 7.0.0-dev.169.gd34501c39f -> Xamarin.AndroidX.AppCompat (>= 1.7.1.3) error NU1605: uno53net9blank -> Xamarin.AndroidX.AppCompat (>= 1.7.1.1) This is a sign that NuGet package versions need to be harmonized between `@(PackageReference)` and `src/Uno.Sdk/packages.json`. `@(PackageReference)` needs to be udpated *for latest .NET* to be the latest NuGet package version available from nuget.org. Update `packages.json` such that: 1. The `version` key is the **`versionOverride` > `net10.0`** value within `targets/netstandard2.0/packages.json` for the Uno.Sdk 6.6.29 package. 2. The **`versionOverride` > `net10.0`** key is renamed to `net11.0`. `net10.0` is the base level package version, because in .NET 11 only .NET 10 and .NET 11 are supported; .NET 9 isn't relevant. 3. Update the **`versionOverride` > `net11.0`** values to the latest values for those packages currently available on NuGet.org. Similarly, review `@(PackageReference)`s used by `net11.0-android` and bump them to the latest package versions available on NuGet. These should be consistent with the versions in `packages.json`. This addresses the NU1605 errors.
Context: #23626 Context: unoplatform/uno.icu#27 Context: mono/SkiaSharp#4459 Context: mono/SkiaSharp#4487 Context: https://github.com/mono/SkiaSharp/releases/tag/v4.151.0-rc.1.1 The "chore: Update to .NET 11 Preview 6" commit mentioned: > Context: dotnet/macios#25867 > … > TODO: > > * Update **Tests - Templates** to build for and run on .NET 11. > Now that dotnet/macios#25867 has been fixed, this should now be > possible. With some quick **sed(1)**s later: git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g' git grep -l net10.0 build/test-scripts/run*template*.ps1 | xargs sed -i '' 's/net10\.0/net11.0/g' we see that many tests pass, but anything related to WebAssembly fails: error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] error : Aborting compilation due to previous errors [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] error : '/agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Node.linux-x64/11.0.0-preview.6.26359.118/tools/bin/node /agent/_work/1/s/.dotnet/packs/Microsoft.NET.Runtime.Emscripten.5.0.6.Sdk.linux-x64/11.0.0-preview.6.26359.118/tools/emscripten/tools/compiler.mjs -' failed (returned 1) [/agent/_work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] This is because Emscripten/LLVM broke ABI; see also #23626. unoplatform/uno.icu#27 contains fixes for the Uno.icu-wasm NuGet, but we also require changes to SkiaSharp by way of (at least) mono/SkiaSharp#4459 and mono/SkiaSharp#4487. Bump to Uno.icu* 77.3.0-dev.4 and SkiaSharp 4.151.0-rc.1.1 to get the Emscripten fixes and fix the above WebAssembly-related errors.
Context: #23626 Commit "chore: run SolutionTemplate tests against .NET 11" contains a SkiaSharp and Uno.icu version bump, allowing a great many net11.0-browserwasm tests to *pass*, whereas before they would not build due to the `saveSetjmp` symbol problem; see #23626. **Tests - Templates > macOS Tests 1 > Run Project Templates Tests** has test failures, but not *all* net11.0-browserwasm tests fail: EXEC : error : undefined symbol: saveSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] EXEC : warning : To disable errors for undefined symbols use `-sERROR_ON_UNDEFINED_SYMBOLS=0` [/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] EXEC : warning : _saveSetjmp may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] EXEC : error : undefined symbol: testSetjmp (referenced by root reference (e.g. compiled C/C++ code)) [/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] EXEC : warning : _testSetjmp may need to be added to EXPORTED_FUNCTIONS if it arrives from a system library [/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] EXEC : error : Aborting compilation due to previous errors [/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj::TargetFramework=net11.0-browserwasm] Looking at the binlog, the problem is that it's using the wrong SkiaSharp version! Importing project "/Users/runner/.nuget/packages/skiasharp.nativeassets.webassembly/3.119.2/buildTransitive/netstandard1.0/SkiaSharp.NativeAssets.WebAssembly.props" into project "/Users/runner/work/1/s/src/SolutionTemplate/5.3/uno53net9blank/uno53net9blank/obj/uno53net9blank.csproj.nuget.g.props" at (42,5). Note `3.119.2`, which is what *stable* Uno.Sdk uses! The unoplatform/uno/feature/breakingchanges branch uses SkiaSharp 4.x, and *should* be using 4.151.0-rc.1.1! Using the wrong SkiaSharp version entirely explains the error. The question: *why* is the wrong SkiaSharp version being used? @jonpryor doesn't *know*, but has a *guess*. When looking through the `template-tests-macos-logs` Artifacts, we have a "Bad" binlog, which contains the above error messages: template-tests-macos-logs/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj/3/debug/msbuild.binlog and an interesting counterexample ("Good"), which *also* builds for net11.0-browserwasm but builds successfully: template-tests-macos-logs/5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj/2/debug/msbuild.binlog After a bit of pondering, two interesting things stick out when comparing the build logs. Firstly is the "Command line arguments" value, showing how the project was originally built. There is one difference of consequence: The "Bad" project is built with `-p:UnoFeatures=Material%3BToolkit`, while the "Good" project doens't have that argument at all. This difference is present within `run-netcore-mobile-template-tests.ps1``: $sdkFeatures = $(If ($IsWindows) {"-p:UnoFeatures=Material%3BExtensions%3BToolkit%3BCSharpMarkup%3BSvg%3BMVUX"} Else { "-p:UnoFeatures=Material%3BToolkit" }); … # this one builds successfully @(1, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @("-f", "net11.0-browserwasm"), @("macOS", "NetCore")), # this one fails @(1, "5.3/uno53net9blank/uno53net9blank/uno53net9blank.csproj", @("-f", "net11.0-browserwasm", $sdkFeatures), @("macOS", "NetCore")), The `-p:UnoFeatures` observation leads to the second difference that sticks out: in "Good" we see: …/Uno.Features.targets(5,3): message : Property reassignment: $(UnoFeatures)=";" (previous value: "") at /Users/runner/.nuget/packages/uno.sdk.private/7.0.0-dev.176.g81ed702c78/targets/Uno.Features.targets (5,3) …/Uno.Features.targets(13,3): message : Property reassignment: $(UnoFeatures)=";skiarenderer;" (previous value: ";") at /Users/runner/.nuget/packages/uno.sdk.private/7.0.0-dev.176.g81ed702c78/targets/Uno.Features.targets (13,3) In "Bad" we instead see: The "UnoFeatures" property is a global property, and cannot be modified. "Bad" sees a "global property" because using `-p:PropertyName=Value` on the `dotnet build` command line [creates global properties][0]. The guess is that making `$(UnoFeatures)` a global property in this manner prevents "Bad" from using the correct SkiaSharp version, which in turn causes the build failure. Attempt to fix this by updating `run-netcore-mobile-template-tests.ps1` to instead set `-p:UnoFeaturesOverride=…`, and update `uno53net9blank.csproj` so that `$(UnoFeatures)` is set to `$(UnoFeaturesOverride)` when it's not the empty string. [0]: https://learn.microsoft.com/visualstudio/msbuild/msbuild-properties?view=visualstudio#global-properties
Context: dotnet/runtime#125365 Context: dotnet/runtime#126268 **Tests - Templates > * Tests 3 > Run Project Template Tests** was failing! …/packages/uno.winui/7.0.0-dev.178.gf9062d5bec/buildTransitive/Uno.UI.Tasks.targets(375,3): error MSB4018: The "LinkerHintGeneratorTask_f9062d5bec5689d5ab47fcf80aff1d9b3cfec646" task failed unexpectedly. System.IO.DirectoryNotFoundException->Microsoft.Build.Framework.BuildException.GenericBuildTransferredException: Could not find a part of the path '/Users/runner/work/1/s/src/SolutionTemplate/5.6/uno56netcurrent/uno56netcurrent/obj/Release/net11.0-browserwasm/linkerhints/pass1'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path, Boolean ignoreNotFound) at System.IO.Enumeration.FileSystemEnumerator`1.Init() at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options, Boolean isNormalized, String expression) at System.IO.Enumeration.FileSystemEnumerableFactory.UserFiles(String directory, String expression, EnumerationOptions options) at System.IO.Directory.InternalEnumeratePaths(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions enumerationOptions) at System.IO.Directory.GetFiles(String path, String searchPattern, EnumerationOptions enumerationOptions) at Uno.UI.Tasks.LinkerHintsGenerator.LinkerHintGeneratorTask_f9062d5bec5689d5ab47fcf80aff1d9b3cfec646.BuildResultingFeaturesList(String resultPath) at Uno.UI.Tasks.LinkerHintsGenerator.LinkerHintGeneratorTask_f9062d5bec5689d5ab47fcf80aff1d9b3cfec646.Execute() at Microsoft.Build.CommandLine.OutOfProcTaskAppDomainWrapperBase.InstantiateAndExecuteTask(IBuildEngine oopTaskHostNode, LoadedType taskType, String taskName, String taskLocation, String taskFile, Int32 taskLine, Int32 taskColumn, String targetName, String projectFile, IDictionary`2 taskParams) The `dotnet build` output didn't contain any other useful output. The binlog *did* contain interesting output, specifically: ILLink: error IL1032: Root assembly with name 'obj/Release/net11.0-browserwasm/uno56netcurrent.dll' could not be found. Thus began a bit of hair pulling -- does `uno56netcurrent.dll` not exist (it does exist) -- but eventually learned the following: dotnet/runtime#125365 *changed* how `illink.dll` processes command- line arguments, specifically the .NET 10 `-a FILE [MODE]` option became the `-a ASSEMBLYNAME [MODE]` option in .NET 11! This change in semantics in turn caused the error IL1032, which in turn meant that `illink.dll` no longer created the `…/pass1` directory, which in turn caused `BuildResultingFeaturesList()` to throw. The change from dotnet/runtime#125365 broke the aspnetcore team, who filed dotnet/runtime#126268, the result of which was "we're not fixing the 'regression,' fix your code." The fix is to provide the *assembly name* instead of the *file path*, i.e. use `Path.GetFileNameWithoutExtension(AssemblyPath)`, not `AssemblyPath`. This change was also tested with .NET 10 `illink.dll`, and it continues to work there; .NET 10 `-a FILE` didn't require a *path*, just the *name*. This change causes `illink.dll` to no longer emit `error IL1032`, which in turn causes `…/pass1` to be created, allowing everything to work. …but while we're here, there's a "usability" issue: part of the problem was that `illink` reported an error IL1032, but that error wasn't shown to `dotnet build` output! The error wasn't shown because the error was written to stdout, not stderr! Which means stdout may contain error messages. Update `StartProcess()` so that instead of using a `StringBuilder` to capture stdout and stderr, the messages are instead kept within `List<string>`s. Update `RunLinker()` so that when the exit code isn't 0, all stdout messages containing ` error ` are written to `Log.LogError()`. (A previous iteration avoided the `List<string>` change and just wrote `Log.LogError(res.output)`, but the existing `StringBuilder` use meant that no newlines made it to `res.output`, so the result was a GIGANTICALLY LONG message, as it contained every *warning* produced. Since it would be nicer to just list the error messages, and a `List<string>` made such filtering easier, the `StringBuilder` use was removed.)
c8d0178 to
d73cf5a
Compare
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23776/wasm-skia-net9/index.html |
|
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-23776/docs/index.html |
|
The build 225232 found UI Test snapshots differences: Details
|
Context: #22745
Context: unoplatform/uno.check#540
Update version numbers accordingly.
dotnet/macios on .NET 11 Preview 6 requires Xcode 26.6!
TODO: we'll need to bump
$(GlobalUnoCheckVersion)once we have a newuno-check, once unoplatform/uno.check#540 is merged.PR Type:
✨ Feature
🏗️ Build or CI related changes
What changed? 🚀
PR Checklist ✅
Screenshots Compare Test Runresults.