Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Is it possible to selectively export classes or static methods in the built .wasm file that can be invoked directly? #19

Closed
justingaffney opened this issue Jun 8, 2022 · 2 comments

Comments

@justingaffney
Copy link

I'd like to be able to build a .wasm file from a class library without an entrypoint and expose certain classes or static methods that can be invoked with arguments, to then potentially use in the browser or other environments.

Is this currently possible? If not can arguments be passed into the Main method as a potential alternative?

@MindSwipe
Copy link

+1

I'd love to be able to write plugins/ extensions for a server (or any application) in C#, and compile them to WASM and then call into them at runtime

@SteveSandersonMS
Copy link
Owner

Agreed, we should make this straightforwards to do. I think #30 will cover this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants