Skip to content

Update .NET 11 preview pins and WASM native assets - #5306

Merged
mattleibow merged 3 commits into
mainfrom
mattleibow-rc1-wasm-extraction
Oct 9, 2026
Merged

mattleibow merged 3 commits into
mainfrom
mattleibow-rc1-wasm-extraction

Conversation

@mattleibow

@mattleibow mattleibow commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

Extract the reviewed SDK/WASM slice from #5291 (published head 6dd2c81f2373b763165bdc2e1d4e8ffb35b4c5de, base 0342cd645aac8ea5c13ee06e90fc4a605d643eae) into an independently mergeable main-based PR.

Pin only the preview SDK to 11.0.100-rc.1.26425.128 and workload set to 11.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 _wasmeh and _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 NativeFileReference surfaces: 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

  • Managed API (binding/)
  • Native / C API (externals/skia/src/c, include/c)
  • Generated P/Invoke bindings
  • Native dependency or Skia update (libpng, HarfBuzz, FreeType, zlib, milestone bump, …)
  • Views & integrations (MAUI, Uno, WPF, WinUI, Blazor, …)
  • Rendering output / visual behavior
  • Performance
  • Tests
  • Build, packaging, or CI
  • Documentation or samples

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.
  • With a session-only global.json selecting SDK 11.0.100-rc.1.26425.128, ran dotnet 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.
  • Existing 48 package-output cases, the MSBuild stage, and its Cake runner are unchanged. Full package-suite validation was not run locally: this fresh worktree has no package cohort. Retrieval of the 1.26 GB canonical source artifact was stopped rather than delaying fresh producing CI; it was not used as local native/linking evidence.
  • Dummy archive fixtures prove only NativeFileReference selection, never actual native linking or runtime success. An obsolete-version fixture remains deliberately present to catch accidental old-toolchain selection.
  • No local native build, core/GPU suite, or WASM execution claimed. Fresh producing CI for this PR must validate source-built 6.0.2 archives, packaging, and core net11 WASM linking/execution. No externals-download or 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.
  • Context only, not validation of this PR: source Consolidate sample builds and host execution into tests #5291 build 1628521 on exact 6dd2c81 has published canonical NuGets and its Tests WASM (.NET Preview) check is successful; the whole producing build was still pending when checked.

Checklist

  • Tests added or updated (if omitted, explain why above)
  • Changes above lists all public API and behavioral changes (or "None.")
  • New/changed public API? Added or updated accurate source /// documentation and regenerated bindings when applicable
  • Native change? Companion mono/skia PR linked above and bindings regenerated

The last two items are not applicable: no public API, C API, submodule, or generated bindings changed.

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
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation Preview

Add the automation/staging label to build and publish a documentation preview for this PR.

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.

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

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 -- 5306

PowerShell / 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-5306
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

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
@mattleibow mattleibow changed the title Align .NET 11 RC1 WASM native assets with Emscripten 6.0.2 Update .NET 11 preview pins and WASM native assets Oct 8, 2026
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

📊 SkiaSharp benchmarks — PR #5306

⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS

Informational only — this never blocks the PR. 🟢 faster / less allocation · 🔴 slower / more allocation; moves under 5% are hidden as noise.

⏱️ Times are raw BenchmarkDotNet means, and the ⭐ PR and baseline legs run on separate CI runners, so microbenchmarks can swing run-to-run — treat small time deltas as noise. Allocations are deterministic and the reliable signal. The interactive perf-dashboard (linked below) applies smoothing for the trend view.

Highlights

⏱️ Time — 🔴 35 slower · 🟢 19 faster

  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 4096) · Windows · 2.18 µs → 3.27 µs (+50%)
  • 🟢 BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) · Linux · 2.66 ms → 1.35 ms (-49%)
  • 🔴 MatrixMapPointsBenchmark.MapPoints(Points: 256) · Windows · 161.9 ns → 228.3 ns (+41%)
  • 🔴 RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) · Windows · 98.65 µs → 130.03 µs (+32%)
  • 🔴 PathBoundsBenchmark.TightBounds(Points: 1024) · Windows · 15.78 µs → 20.59 µs (+30%)
  • …and 49 more (see details below)
Full per-OS benchmark deltas

Linux

⏱️ Time (vs 🌙 nightly 4.155.0-nightly.26480.5)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 256) 2.66 ms 1.35 ms 🟢 -49%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 100.07 µs 116.07 µs 🔴 +16%
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.80 µs 3.20 µs 🔴 +15%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 226.4 ns 258.2 ns 🔴 +14%
ColorMathBenchmark.PreMultiply(Colors: 4096) 12.86 µs 14.11 µs 🔴 +10%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.45 µs 12.11 µs 🔴 +6%

Windows

⏱️ Time (vs 🌙 nightly 4.155.0-nightly.26480.5)

Benchmark baseline this PR Δ
MatrixMapPointsBenchmark.MapPoints(Points: 4096) 2.18 µs 3.27 µs 🔴 +50%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 161.9 ns 228.3 ns 🔴 +41%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 98.65 µs 130.03 µs 🔴 +32%
PathBoundsBenchmark.TightBounds(Points: 1024) 15.78 µs 20.59 µs 🔴 +30%
PathBoundsBenchmark.TightBounds(Points: 64) 1.56 µs 1.92 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 8.56 µs 10.53 µs 🔴 +23%
MatrixMapPointsBenchmark.MapRadius(Points: 4096) 137.07 µs 168.32 µs 🔴 +23%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 255.36 µs 298.43 µs 🔴 +17%
ColorParseBenchmark.Parse(Iterations: 1000) 75.18 µs 86.38 µs 🔴 +15%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 2.90 ms 3.25 ms 🔴 +12%
MatrixOpsBenchmark.Concat(Count: 4096) 225.93 µs 251.01 µs 🔴 +11%
CanvasDrawBenchmark.Draw(Shapes: 64) 2.62 ms 2.89 ms 🔴 +10%
ColorMathBenchmark.ToColor(Colors: 4096) 15.55 µs 17.12 µs 🔴 +10%
CanvasDrawBenchmark.Draw(Shapes: 512) 21.09 ms 23.05 ms 🔴 +9%
MatrixMapPointsBenchmark.MapRect(Points: 4096) 118.17 µs 128.92 µs 🔴 +9%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 11.34 µs 12.34 µs 🔴 +9%
MatrixMapPointsBenchmark.MapVector(Points: 256) 8.09 µs 8.73 µs 🔴 +8%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 129.18 µs 138.39 µs 🔴 +7%
MatrixMapPointsBenchmark.MapRect(Points: 256) 7.63 µs 8.14 µs 🔴 +7%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 2.13 ms 2.26 ms 🔴 +6%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 925.77 µs 979.27 µs 🔴 +6%

macOS

⏱️ Time (vs 🌙 nightly 4.155.0-nightly.26480.5)

Benchmark baseline this PR Δ
BitmapDrawBenchmark.DrawScaledTiles(Tiles: 64) 231.46 µs 296.47 µs 🔴 +28%
RuntimeEffectShaderBenchmark.DrawFrame 646.95 µs 806.50 µs 🔴 +25%
MatrixOpsBenchmark.Concat(Count: 4096) 117.31 µs 138.71 µs 🔴 +18%
SceneRenderBenchmark.RenderFrame(Complexity: 4) 5.59 ms 6.57 ms 🔴 +17%
BitmapDrawBenchmark.DrawUnscaledTiles(Tiles: 256) 653.03 µs 547.01 µs 🟢 -16%
RasterImageLifecycleBenchmark.CreateDataWithReleaseProc(Count: 256) 70.85 µs 81.81 µs 🔴 +15%
ColorParseBenchmark.Parse(Iterations: 1000) 73.94 µs 63.51 µs 🟢 -14%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 2048) 3.06 ms 2.64 ms 🟢 -14%
LargeImageScaleBenchmark.UpscaleOpaque(Size: 1024) 771.41 µs 665.07 µs 🟢 -14%
MatrixMapPointsBenchmark.MapPoints(Points: 256) 165.3 ns 146.4 ns 🟢 -11%
ColorMathBenchmark.ToColorF(Colors: 4096) 5.54 µs 4.91 µs 🟢 -11%
CanvasDrawBenchmark.Draw(Shapes: 64) 1.56 ms 1.39 ms 🟢 -11%
MatrixMapPointsBenchmark.MapVector(Points: 256) 2.93 µs 2.61 µs 🟢 -11%
MatrixMapPointsBenchmark.MapRadius(Points: 256) 6.97 µs 7.68 µs 🔴 +10%
SceneRenderBenchmark.RenderFrame(Complexity: 1) 1.49 ms 1.64 ms 🔴 +10%
ColorMathBenchmark.ToColor(Colors: 4096) 22.29 µs 20.11 µs 🟢 -10%
ColorMathBenchmark.UnPreMultiply(Colors: 4096) 8.28 µs 7.50 µs 🟢 -9%
MatrixOpsBenchmark.Invert(Count: 4096) 67.27 µs 73.06 µs 🔴 +9%
MatrixMapPointsBenchmark.MapPoint(Points: 4096) 20.35 µs 22.08 µs 🔴 +9%
ColorMathBenchmark.PreMultiply(Colors: 4096) 8.99 µs 8.25 µs 🟢 -8%
MatrixMapPointsBenchmark.MapVector(Points: 4096) 45.24 µs 41.52 µs 🟢 -8%
CanvasDrawBenchmark.Draw(Shapes: 512) 12.16 ms 11.17 ms 🟢 -8%
MatrixMapPointsBenchmark.MapPoint(Points: 256) 1.28 µs 1.19 µs 🟢 -7%
LargeImageScaleBenchmark.UpscaleCrossfade(Size: 1024) 1.62 ms 1.51 ms 🟢 -7%
RasterImageLifecycleBenchmark.CreateRasterImage(Count: 256) 149.31 µs 140.68 µs 🟢 -6%
…and 2 more

📈 Full interactive perf-dashboard & run details →

mattleibow pushed a commit that referenced this pull request Oct 8, 2026
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]>
@mattleibow
mattleibow marked this pull request as ready for review October 8, 2026 22:37
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
mattleibow pushed a commit that referenced this pull request Oct 8, 2026
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]>
@mattleibow
mattleibow added this pull request to stack #5309 October 8, 2026 22:46
@mattleibow
mattleibow merged commit cb51ed5 into main Oct 9, 2026
119 checks passed
@mattleibow
mattleibow deleted the mattleibow-rc1-wasm-extraction branch October 9, 2026 01:19
@github-actions github-actions Bot added this to the 4.156.0-preview.1 milestone Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant