Repository navigation
Update .NET 11 preview pins and WASM native assets - #5306
Conversation
Pin the preview SDK and workload set to the reviewed RC1 versions. Replace obsolete preview Emscripten 5.0.6 jobs and merger inputs with all four 6.0.2 variants, preserving stable toolchains and the existing installer contract. Align source and packaged native references, including the missing packaged Skia net11 boundary. Port the 80 item-selection evaluations into the existing MSBuild suite without replacing its package tests or CI stage. Co-authored-by: Copilot App <[email protected]> Copilot-Session: cbe348b8-ee2b-40c5-b889-86aaead009c0
|
📖 Documentation Preview Add the Removing the label removes the preview. While the label is present, each new commit updates it. This comment is automatically updated by the documentation staging workflow. |
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5306PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5306"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5306/packages --name skiasharp-pr-5306More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5306 |
Keep RC1 terminology on the SDK/workload pins only; the WASM mapping applies to all net11.0+ targets. Co-authored-by: Copilot App <[email protected]> Copilot-Session: cbe348b8-ee2b-40c5-b889-86aaead009c0
📊 SkiaSharp benchmarks — PR #5306⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 35 slower · 🟢 19 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
Synchronize PR #5306 at 7acc328. Replace obsolete Emscripten 5.0.6 build and merger inputs with the .NET 11 6.0.2 variants. Retain the equivalent 80 native-reference evaluations in the consolidated Samples suite rather than resurrecting its retired MSBuild host. Co-authored-by: Copilot App <[email protected]>
Integrate the landed SDK/workload provisioning refactor. Keep this branch's RC1 preview SDK and workload pins alongside main's split Tizen manifest band/version interface. Co-authored-by: Copilot App <[email protected]> Copilot-Session: cbe348b8-ee2b-40c5-b889-86aaead009c0
Merge PR #5306 head 7dd7eb0, including main a38df39 and landed #5307. Preserve the equivalent consolidated sample lanes and tests without restoring retired MSBuild orchestration. The resulting tree is unchanged. Co-authored-by: Copilot App <[email protected]>
Description
Extract the reviewed SDK/WASM slice from #5291 (published head
6dd2c81f2373b763165bdc2e1d4e8ffb35b4c5de, base0342cd645aac8ea5c13ee06e90fc4a605d643eae) into an independently mergeable main-based PR.Pin only the preview SDK to
11.0.100-rc.1.26425.128and workload set to11.0.100-rc.1.26460.1: approved mirrors lacked Preview 6's Emscripten 5.0.6 host packs. At the maintainer's explicit direction, replace obsolete 5.0.6 preview builds and both merger inputs with the four 6.0.2 st/mt/SIMD combinations, preserving_wasmehand_newexc. Emscripten 6.0.2 is the toolchain for all .NET 11 targets, not an RC1-specific target selection. Keep stable/WinUI pins, Tizen's existing variable/interface, provisioning helpers, sample TFMs, and legacy MSBuild stage unchanged.Align all four source/package
NativeFileReferencesurfaces: net8 selects 3.1.34, net9/net10 select 3.1.56, and net11+ selects 6.0.2. Fix packaged Skia's previously unbounded net9+ selection as part of the alignment. Port the source regression into the existing MSBuild suite without importing the Samples runner or altering its existing 48 package-output cases. Documentation describes only the SDK/WASM changes.Related issues
Related to #5291; does not close or supersede it.
Required skia PR
None.
Areas affected
binding/)externals/skia/src/c,include/c)Changes
Public API: None. No signature, ABI, project TFM, or rendering changes.
Behavior: Source and packaged net11+ WASM consumers select Emscripten 6.0.2 archives. Stable framework selections are unchanged. Packages stop producing obsolete preview-only 5.0.6 variants.
Testing
dotnet test tests/SkiaSharp.Tests.MSBuild/SkiaSharp.Tests.MSBuild.csproj -- --filter-method '*WasmTargetsSelectTheDeclaredFrameworkToolchain*' --report-trx— passed on macOS arm64 with SDK 10.0.401: 5/5 rows, 0 skipped, 80 actual item evaluations. Repeated after replacing obsolete preview build entries: passed again, 5/5 rows.global.jsonselecting SDK11.0.100-rc.1.26425.128, randotnet test /Users/matthew/.copilot/repos/copilot-worktrees/SkiaSharp/mattleibow-solid-winner/tests/SkiaSharp.Tests.MSBuild/SkiaSharp.Tests.MSBuild.csproj -- --filter-method '*WasmTargetsSelectTheDeclaredFrameworkToolchain*' --report-trx— passed: 5/5 rows, 0 skipped, the same 80 evaluations under the pinned SDK. No shared SDK/workload installations or global Xcode changed.git diff --check— passed. Parsed YAML check passed: 12 variants total, all four 6.0.2 feature combinations, both merger lists exactly matching the WASM matrix, no 5.0.6 build inputs.NativeFileReferenceselection, never actual native linking or runtime success. An obsolete-version fixture remains deliberately present to catch accidental old-toolchain selection.externals-downloador old WASM binaries used. The known existing local macOS-arm64 ganesh-gl/DiagonalLines mismatch was not retested or altered; no GPU skip, golden, or tolerance change.6dd2c81has published canonical NuGets and its Tests WASM (.NET Preview) check is successful; the whole producing build was still pending when checked.Checklist
Changesabove lists all public API and behavioral changes (or "None.")///documentation and regenerated bindings when applicablemono/skiaPR linked above and bindings regeneratedThe last two items are not applicable: no public API, C API, submodule, or generated bindings changed.