Skip to content

[WASM] Add Emscripten 5.0.6 static libraries for .NET 11 - #4459

Merged
mattleibow merged 4 commits into
mono:mainfrom
ramezgerges:dev/wasm-emsdk-5.0.6
Jul 17, 2026
Merged

mattleibow merged 4 commits into
mono:mainfrom
ramezgerges:dev/wasm-emsdk-5.0.6

Conversation

@ramezgerges

Copy link
Copy Markdown
Contributor

.NET 11 (preview 6+) links WASM apps with emsdk 5.0.6, replacing the 3.x toolchain used by .NET 9/10. The buildTransitive targets selected the native static library with an open-ended net9.0+ → Emscripten 3.1.56 rule, so a net11.0 app was handed the 3.1.56 libSkiaSharp.a. A library built with Emscripten 3.x cannot be linked by emsdk 5.x (incompatible wasm object format), producing a link failure.

Fix

Split the open-ended rule into bounded ranges and add a net11.0+ → 5.0.6 entry, wiring the new Emscripten version through the build and merge pipeline so the packages actually ship it.

  • Consumer targets (shipped in the NuGets): SkiaSharp/HarfBuzzSharp NativeAssets.WebAssembly buildTransitive targets now route net9.0–net10.x → 3.1.56, net11.0+ → 5.0.6.
  • Repo-internal build/test: IncludeNativeAssets.{SkiaSharp,HarfBuzzSharp}.targets mirror the same split.
  • CI: add the four 5.0.6 variants (st/mt/simd/simd+mt) to the WASM build matrix and register the native_wasm_5_0_6_* artifacts in both native-merge lists.
  • Docs: update packages.md and updating-dotnet-version.md (remove the now-false ">=9.0 covers future versions" note; document the emsdk-per-SDK mapping).

Packaging globs (** / * over the version folder) pick up the new 5.0.6/ directory automatically, so no nuspec/csproj change is needed. The WASM Docker image already installs whatever EMSCRIPTEN_VERSION is passed, so 5.0.6 needs no Dockerfile change.

Reproduction

Selection logic evaluated per TFM (before the fix):

App TFM emsdk the SDK links with lib selected result
net8.0 3.1.34 3.1.34 ✅
net9.0 3.1.56 3.1.56 ✅
net10.0 3.1.56 3.1.56 ✅
net11.0 5.0.6 3.1.56 ❌ mismatch → link failure

After the fix, net11.0 → 5.0.6 with all other TFMs unchanged.

🤖 Generated with Claude Code

.NET 11 (preview 6+) links WASM apps with emsdk 5.0.6, replacing the 3.x
toolchain used by .NET 9/10. The buildTransitive targets selected the native
static library with an open-ended `net9.0+` -> Emscripten 3.1.56 rule, so a
net11.0 app was handed the 3.1.56 libSkiaSharp.a. A static library built with
Emscripten 3.x cannot be linked by emsdk 5.x (incompatible wasm object format),
producing a link failure.

Split the open-ended rule into bounded ranges and add a net11.0+ -> 5.0.6 entry,
and wire the new Emscripten version through the build and merge pipeline so the
packages actually ship it:

- Consumer targets (shipped): SkiaSharp/HarfBuzzSharp NativeAssets.WebAssembly
  buildTransitive targets now route net9.0-net10.x -> 3.1.56, net11.0+ -> 5.0.6.
- Repo-internal build/test: IncludeNativeAssets.{SkiaSharp,HarfBuzzSharp}.targets
  mirror the same split.
- CI: add the four 5.0.6 variants (st/mt/simd/simd+mt) to the WASM build matrix
  and register the native_wasm_5_0_6_* artifacts in both native-merge lists.
- Docs: update packages.md and updating-dotnet-version.md (remove the now-false
  ">=9.0 covers future versions" note; document the emsdk-per-SDK mapping).

Packaging globs (** / * over the version folder) pick up the new 5.0.6/
directory automatically, so no nuspec/csproj change is needed.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@github-actions

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

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 4459"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-4459/packages --name skiasharp-pr-4459
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-4459

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@ramezgerges! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@mattleibow
mattleibow requested a review from Copilot July 16, 2026 19:02
@mattleibow

mattleibow commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

mattleibow
mattleibow previously approved these changes Jul 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates SkiaSharp/HarfBuzzSharp WebAssembly native asset selection and CI packaging to support .NET 11’s switch to Emscripten 5.0.6, avoiding link failures caused by mixing Emscripten 3.x-built static libraries with the 5.x toolchain.

Changes:

  • Extend the WASM native build matrix to produce 5.0.6 static libraries (st/mt/simd/simd+mt) and include those artifacts in the native-merge pipeline.
  • Update the MSBuild NativeFileReference routing rules so net9.0–net10.x select Emscripten 3.1.56, and net11.0+ selects Emscripten 5.0.6 (currently implemented as open-ended for net11+).
  • Update developer documentation to reflect the emsdk-per-.NET SDK mapping and remove the “>=9.0 covers future versions” guidance.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
scripts/azure-templates-stages-native-wasm.yml Adds Emscripten 5.0.6 variants to the WASM build matrix.
scripts/azure-templates-stages-native-merge.yml Registers the new 5.0.6 WASM artifacts for merge/publishing.
documentation/dev/updating-dotnet-version.md Documents the .NET↔Emscripten mapping and advises version-bounded selection rules.
documentation/dev/packages.md Updates package docs to list the new 5.0.6 WASM assets for net11.0+.
binding/SkiaSharp.NativeAssets.WebAssembly/buildTransitive/SkiaSharp.targets Routes TFMs to the correct WASM .a version (3.1.56 vs 5.0.6).
binding/HarfBuzzSharp.NativeAssets.WebAssembly/buildTransitive/HarfBuzzSharp.targets Same routing update for HarfBuzzSharp WASM .a.
binding/IncludeNativeAssets.SkiaSharp.targets Mirrors WASM routing for repo-internal build/test usage.
binding/IncludeNativeAssets.HarfBuzzSharp.targets Mirrors WASM routing for repo-internal build/test usage.

Address review feedback: the net11.0+ NativeFileReference conditions were
open-ended (>= 11.0), so net12.0+ would silently pick up the Emscripten 5.0.6
libraries, recreating the same toolchain-mismatch class of bug this PR fixes.
Bound the range to [11.0, 12.0) in all four WASM targets files so the next SDK
Emscripten bump surfaces as "no library selected" rather than linking a stale
build — consistent with the bounded-range guidance added to
updating-dotnet-version.md.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@ramezgerges

This comment has been minimized.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Revert the [11.0, 12.0) bound added in the previous commit. Per discussion:
net9.0 and net10.0 already share Emscripten 3.1.56, and .NET 12+ may well keep
5.0.6 too. Keeping the newest entry open-ended (>= 11.0) means a future SDK that
reuses the same toolchain works with no code change. The previous range is only
closed with an upper bound when a new SDK actually diverges (as net9.0-net10.x
was capped at < 11.0 once .NET 11 moved to 5.0.6).

Update updating-dotnet-version.md to document this convention (newest entry
open-ended; close it only on an actual Emscripten divergence).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@ramezgerges

This comment has been minimized.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mattleibow
mattleibow merged commit 840ea4e into mono:main Jul 17, 2026
101 of 107 checks passed
@github-project-automation github-project-automation Bot moved this from Approved to Done in SkiaSharp Backlog Jul 17, 2026
@mattleibow mattleibow added this to the 4.151.0-preview.3 milestone Jul 17, 2026
mattleibow added a commit that referenced this pull request Jul 20, 2026
[WASM] Build emsdk 5.0.6 libs with new exnref exception handling (#4487)

Context: #4459

A .NET 11 Blazor WebAssembly app that references SkiaSharp links fine but
fails at runtime in a modern browser while instantiating the module:

    CompileError: WebAssembly.compileStreaming(): module uses a mix of
    legacy and new exception handling instructions (function #19801)

.NET 11 (preview 6+) links WASM apps with the *new* wasm exception-handling
model (exnref: WASM_LEGACY_EXCEPTIONS=0, emitting try_table/throw_ref).
#4459 correctly started shipping an emsdk 5.0.6 static library so net11.0+
apps link against a matching toolchain, but that library was still compiled
with only -fwasm-exceptions and no instruction-variant pin, so it emitted the
*legacy* wasm-EH instructions (try/catch). V8 refuses to compile a module that
mixes the two schemes, hence the CompileError. #4459 fixed the earlier link
failure; this fixes the remaining runtime EH mismatch.

Add a `_newexc` emscripten feature to native/wasm/build.cake that appends
`-s WASM_LEGACY_EXCEPTIONS=0` to both extra_cflags and extra_cflags_cc. This
is a codegen-affecting flag that must be passed at compile time (the .a build
produces wasm object files, so codegen happens during compile, not link), and
it has to cover both the C++ exceptions and the wasm setjmp/longjmp used by the
C dependencies (libjpeg-turbo, libpng, etc.). Enable the feature only on the
four 5.0.6 native matrix variants (st / mt / simd / simd+mt) in
scripts/azure-templates-stages-native-wasm.yml.

net8 (emsdk 3.1.34) and net9/net10 (emsdk 3.1.56) keep the legacy EH model to
match their runtimes, which predate the exnref proposal, so their build paths
are byte-identical (the flag is only added when `_newexc` is present). No
packaging or lib-selection changes are needed: `_`-prefixed feature tokens are
excluded from the artifact path, and the net11.0+ -> 5.0.6 selection already
exists from #4459.

Verified by rebuilding the 5.0.6 st and st,simd libraries from source: the
rebuilt .a disassembles to the new try_table/throw_ref instructions with no
legacy try-block/delegate/rethrow, and a net11.0 Blazor WASM app that failed
with the CompileError on the shipped (legacy-EH) lib now boots and renders with
SkiaSharp. net10 continues to link the legacy EH path (-lc++-except, no
-wasm-use-legacy-eh=0) and is unaffected.

Co-authored-by: Matthew Leibowitz <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@mattleibow mattleibow modified the milestones: 4.151.0-preview.3, 4.151.0-rc.1 Jul 20, 2026
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 21, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487

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 a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, 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.

We will need to wait for updated NuGet packages in order to address
the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 21, 2026
Context: #23626
Context: unoplatform/uno.icu#27
Context: mono/SkiaSharp#4459
Context: mono/SkiaSharp#4487

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 a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, 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.

We will need to wait for updated NuGet packages in order to address
the above WebAssembly-related errors.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 22, 2026
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 a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, 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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 22, 2026
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 a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, 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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 22, 2026
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 a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, 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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 28, 2026
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 a quick sed later:

	git grep -l net10.0 src/SolutionTemplate | xargs sed -i '' 's/net10\.0/net11.0/g'

and an update to `run-netcore-mobile-template-tests.ps1`, 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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 28, 2026
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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 28, 2026
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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 29, 2026
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.
jonpryor added a commit to unoplatform/uno that referenced this pull request Jul 31, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants