1

How to produce single WASM file using .NET WASI SDK? Here is my project file

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net8.0</TargetFramework>
    <RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
  </PropertyGroup>

Currently WASI SDK produce dotnet.wasm + myapp.dll, but I would like to have dotnet.wasm + myapp.wasm

codevision
  • 5,165
  • 38
  • 50

1 Answers1

1

You should use.

<WasmSingleFileBundle>true</WasmSingleFileBundle>
codevision
  • 5,165
  • 38
  • 50