Skip to content

Can Uno.Wasm.Bootstrap be used to compile c# to .wasm? #431

Answered by jeromelaban
nextfool asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for asking!

The current tooling for .NET (which the uno bootstrapper uses) does not build a single .wasm module for multiple reasons, where the basic one being that emscripten needs additional files to work properly.

Upcoming WebAssembly specs will help removing this dependency (Exceptions, InterfaceTypes) but for now it's not possible.

Added to this, we're currently not packaging code in such a way that it can easily be used as a library, unless the startup code is executed properly. After that, invoking C# code still needs to go through the C API of mono, which is not particularly user friendly.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@SongOfYouth
Comment options

@jeromelaban
Comment options

@SongOfYouth
Comment options

@BradChase2011
Comment options

@jeromelaban
Comment options

Answer selected by nextfool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #430 on September 29, 2021 12:33.