Is it possible to compile .NET class library to WebAssembly to call from JavaScript?

This page summarizes the projects mentioned and recommended in the original post on /r/dotnet

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • .NET Runtime

    .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

  • Yes, this is possible, but not documented much. Check these docs: https://github.com/dotnet/runtime/tree/main/src/mono/wasm

  • CSharpWasmSamples

    C# WebAssembly samples

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • dotnet-wasi-sdk

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

  • You might be able to use https://github.com/SteveSandersonMS/dotnet-wasi-sdk

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts