Is this repository the right place to post non-Blazor issuess/questions re: WASM compilation? #70632
Replies: 5 comments
-
Beta Was this translation helpful? Give feedback.
-
@petertiedemann Yup, this repo is the right place. The .NET WebAssembly build tools workload and the .NET WebAssembly runtime are managed from this repo. |
Beta Was this translation helpful? Give feedback.
-
Yes, this is the right place. Feel free to open issues with the problems you are running into and we will take a look at them. cc @maraf |
Beta Was this translation helpful? Give feedback.
-
@danroth27 @lewing Thanks for letting me know. Having worked around the specific issue I linked to above (by using a different) setup, I would like to just describe my experience in trying to achieve my goal, as I think it points to some problems (at the very least with documentation). Hope its okay to place here in a discussion (seems too vague for for a specific issue). As mentioned, I wanted to to create a WASM library wrapping a C# API to be consumed in browser JS. Almost all material on C# and WASM is focused on end-to-end Blazor. I failed completely to find any documentation or guidelines on generating WASM without Blazor. I went through the following attempts (all using latest .NET 7 Preview and VS2022 Preview):
4 turned out great in my case (it actually allowed me to demo our fairly complex library running in the browser. However, I cannot help wondering if I am dragging in unnecessary dependencies here for example. I guess my questions are:
|
Beta Was this translation helpful? Give feedback.
-
Hi @petertiedemann, Thanks for sharing your experience. I have created an issue for missing template readme (#71047) There are quite some features important for running .NET on WASM without Blazor that are coming
I have tested the browser template now, with preview5, and after publishing it ( You should be able to For your scenario Blazor really seems unnecessary, but without it, you won't be able to interact with the JavaScript, as we don't have a public interop API on the runtime side yet. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a goal of exposing an existing .NET library as a WASM "library" that can be consumed by existing Javascript applications (so no blazor). I have found it very hard to find out what the "recommended" path is (just finding out which repo contains the WASM compiler bits is pretty tricky, as is determining what its actually called (is it still called mono-wasm?)).
My question is simply whether this is the right place to ask questions about this area? And if not, any pointers to the right place would be greatly appreciated.
I am currently using Uno.Wasm.Bootstrap, but it does not really seem the right place to ask, as (in my understanding) it is simply a packaging of the existing tooling. Therefore I am wondering if a an issue like the one below, is better raised here?
unoplatform/Uno.Wasm.Bootstrap#515
Beta Was this translation helpful? Give feedback.
All reactions