SteveSandersonMS / dotnet-wasi-sdk

Packages for building .NET projects as standalone WASI-compliant modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DLL functionality with wasm-files

blankensteiner opened this issue · comments

Hi

Is it part of the roadmap to be able to handle wasm-files as you can with dll-files today, in regards to running a .NET application and be able to:

  1. Load a wasm-file (written in another language)
  2. Use reflection to find something implementing an "interface" (or an "export")
  3. Create an instance of that "class" and call methods (or calling static functions)

I could see multiple use cases for that functionality. Creating a C# host that allows for externals to implement some specification and dynamically load the third-party modules/wasm-files.

If not possible using the .NET runtime, then with the application compiled as a wasm-application and dynamically loading and using wasm-files written in other languages.

Best regards
db