Move WASM to CoreCLR to unlock more platfroms? #132280
Unanswered
universorum
asked this question in
Ideas
Replies: 2 comments
|
In .NET 11, you can use |
0 replies
|
wasm on coreclr is still WIP. As announced before it won't come together with mobile platforms in .NET 11. The current ETA is .NET 12. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Cloudflare Workers is a hugely popular serverless platform that supports WebAssembly. Today, you can use it to run Hono for path-based request routing, and even execute Rust code compiled to Wasm via the wasm32-unknown-unknown toolchain.
Currently, the only way to run a .NET application on Cloudflare is through containers, which are expensive. If ASP.NET Core could run in Wasm, we could deploy it to Cloudflare Workers without needing a container at all.
However, in .NET 11 Preview 7, attempting to compile an ASP.NET Core Minimal API project for WASM produces the following error: NETSDK1082: There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.
I guess thet is because WASM is using mono, not CoreCLR. Starting .NET 11, WASM is only Microsft supported platform using mono (Unity is not supported by Microsoft and is will be supported s∞n in Unity 6.6(preview)/6.7).
I guess this is because the Wasm runtime uses Mono, not CoreCLR. Starting with .NET 11, Wasm is the only Microsoft-supported platform still running on Mono. (Unity is not supported by Microsoft directly, and it will add .NET support s∞n in Unity 6.6 (preview) or 6.7).
All reactions