Dynamically load wasm compiled assembly into dotnet #95903
Answered
by
maraf
bogdancucosel
asked this question in
Q&A
-
Hi! I am trying to understand if dynamically loading a wasm compiled assembly is possible in dotnet browser-wasm.
But this fails, as the asserts for the root domain not be available.Is this something that could be possible ? Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
maraf
Dec 13, 2023
Replies: 1 comment 7 replies
-
The |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
bogdancucosel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
mono_wasm_add_assembly
can be used only before the runtime has started. You can leverage Blazor's lazy loading (outside of Blazor) with a bit of internal API. You can useINTERNAL.loadLazyAssembly
to lazy load assembly marked as<BlazorWebAssemblyLazyLoad Include="wasmLibrary.wasm"" />
.