NetWasm.Wit.Bindings.Tool
0.15.2
Prefix Reserved
dotnet tool install --global NetWasm.Wit.Bindings.Tool --version 0.15.2
dotnet new tool-manifest
dotnet tool install --local NetWasm.Wit.Bindings.Tool --version 0.15.2
#tool dotnet:?package=NetWasm.Wit.Bindings.Tool&version=0.15.2
nuke :add-package NetWasm.Wit.Bindings.Tool --version 0.15.2
NetWasm WIT binding tool
netwasm-wit-bindgen converts a selected WIT world into deterministic,
reflection-free C# source. It is separate from the NetWasm CIL compiler: the
compiler consumes the resulting ordinary managed assembly and does not invoke
or identify this generator.
Install the tool at the NetWasm version your project builds with, in a local tool manifest:
dotnet new tool-manifest
dotnet tool install NetWasm.Wit.Bindings.Tool --version <version>
Update it to the same version when you upgrade NetWasm, and regenerate. The
second line of every generated file names the generator version. A NetWasm
project can instead generate its bindings during the build with a NetWasmWit
item, which always matches the project's NetWasm.
The package carries NetWasm's pinned platform-neutral wasm-tools module. The
standalone command requires Node.js 24 or newer on PATH, or you can set
NETWASM_NODE_PATH to its executable. It does not require Emscripten or a native
wasm-tools installation.
dotnet netwasm-wit-bindgen \
--wit service.wit \
--world example:service@1.0.0/service \
--output Bindings.g.cs
Omit --world when the WIT document contains exactly one world.
netwasm-wit-bindgen --help lists every option.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.15.2 | 0 | 11/22/2026 |
| 0.15.2-preview.1 | 0 | 11/22/2026 |
| 0.15.1 | 92 | 11/21/2026 |
| 0.15.1-preview.2 | 45 | 11/21/2026 |
| 0.15.0 | 63 | 11/20/2026 |
| 0.15.0-preview.1 | 47 | 11/20/2026 |
| 0.14.2 | 113 | 11/15/2026 |
| 0.14.2-preview.2 | 60 | 11/15/2026 |
| 0.14.1 | 105 | 11/15/2026 |
| 0.14.1-preview.1 | 64 | 11/15/2026 |
| 0.14.0 | 112 | 11/14/2026 |
| 0.14.0-preview.2 | 69 | 11/14/2026 |
| 0.13.0 | 104 | 11/13/2026 |
| 0.13.0-preview.2 | 58 | 11/13/2026 |
| 0.12.2 | 102 | 11/11/2026 |
| 0.12.2-preview.1 | 62 | 11/11/2026 |
| 0.12.1 | 98 | 11/10/2026 |
| 0.12.1-preview.2 | 55 | 11/10/2026 |
| 0.12.0 | 100 | 11/10/2026 |
| 0.12.0-preview.5 | 55 | 11/10/2026 |