Skip to content

Dynamically load wasm compiled assembly into dotnet #95903

Answered by maraf
bogdancucosel asked this question in Q&A
Discussion options

You must be logged in to vote

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 use INTERNAL.loadLazyAssembly to lazy load assembly marked as <BlazorWebAssemblyLazyLoad Include="wasmLibrary.wasm"" />.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@bogdancucosel
Comment options

@maraf
Comment options

maraf Dec 15, 2023
Collaborator

@maraf
Comment options

maraf Dec 15, 2023
Collaborator

@bogdancucosel
Comment options

@maraf
Comment options

maraf Dec 15, 2023
Collaborator

Answer selected by bogdancucosel
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
2 participants