Skip to content

Is it possible to run .NET in browser worklets? #96024

Answered by pavelsavara
acaly asked this question in Q&A
Discussion options

You must be logged in to vote

We have 2 flavors of dotnet for wasm, one is targeted to "OS" Browser and the other to WASI.

Here is simple dotnet on wasm demo I wrote for Net7. It will work for Net8 too. That is targeting browser JavaScript APIs.
https://github.com/pavelsavara/dotnet-wasm-todo-mvc

I think this is close to what you want.
It would work in webworker (we are planning more specific demo soon #95452)
But running it in worklet could be more challenging. Keep us posted 😉

The WASI flavor is much less mature. Also the browser ecosystem is not very ready to run WASI. You can read more about our WASI thought here https://devblogs.microsoft.com/dotnet/extending-web-assembly-to-the-cloud/

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pavelsavara
Comment options

@acaly
Comment options

@pavelsavara
Comment options

Answer selected by acaly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
3 participants