Let\'s say I have a .NET dll file on the server, that has this simple class:
public static class C {
public static int
Here's what I found.
Let's call the unpacked folder WASM-SDK.
Note: you can skip following steps if you run packager.exe as described in Mono docs, but I want to describe the manual approach here for better understanding.
Put the following dlls under your site root (lets say under managed folder):
class C, let's call it app.dllWASM-SDK\wasm-bcl\wasm\mscorlib.dllWASM-SDK\wasm-bcl\wasm\Facades\netstandard.dllWASM-SDK\framework\WebAssembly.Bindings.dllmono.js and mono.wasm from WASM-SDK\release under your site rootModule and import mono.js:
application/wasm mime type register for the .wasm extension.Now once you open your HTML you should see C.Add: 3 logged in the browser console.