Can Uno.Wasm.Bootstrap be used to compile c# to .wasm? #431
-
Hi community, So my problem is simple(or complicated), I need to compile my algorithms/libraries written in C# to .wasm so that they can be used in browser environments(web apps). So far I have looked in to the blazor webassembly as well as uno platform, but both seems to only emmit a large number of files (dll.bc, dll.clr etc.) other than .wasm. Can anyone please give me any advice to put me to the right direction? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Thanks for asking! The current tooling for .NET (which the uno bootstrapper uses) does not build a single 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 |
Beta Was this translation helpful? Give feedback.
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.