NetWasm.Sdk 0.2.3

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
<Sdk Name="NetWasm.Sdk" Version="0.2.3" />
                    
For projects that support Sdk, copy this XML node into the project file to reference the package.
#:sdk NetWasm.Sdk@0.2.3
                    
#:sdk directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.

NetWasm.Sdk

NetWasm.Sdk contains the project-SDK implementation for the experimental netwasm0.1 profile. It composes Microsoft.NET.Sdk and maps the user-facing alias to the tested NetWasm identity.

Executable projects use restored, platform-neutral NetWasm.Toolchain, NetWasm.Hosting, and NetWasm.Hosting.Build packages. The SDK validates the Node 24 or newer and wasm-ld/LLD 24 or newer supplied by an activated Emscripten 6.0.7 SDK before building. The platform-neutral wasm-tools module is restored through NetWasm.Toolchain; Wasmtime is optional and is not part of the standard build, run or publish path. The SDK creates a manifest-complete local deployment and execution request for dotnet run; dotnet publish copies that exact portable closure or, with -p:NetWasmPublishTarget=browser, emits the browser-selected closure. Release JavaScript is minified by default.

Host tools come from the activated Emscripten SDK.

The compiler/runtime layer supplies componentization through the NetWasmComponentizeDependsOn target seam. It receives the core module, WIT, interop, and runtime inputs through @(NetWasmComponentInput) and @(NetWasmComponentRuntime), and must produce both NetWasmOutputPath and NetWasmComponentManifestPath. A missing provider is a loud build error. This keeps compiler and runtime policy out of the SDK while allowing a runtime-tier package to plug in without changing project files.

Raw module qualification can set -p:NetWasmRawWasm=true. This emits the managed core module and materialized runtime module, but skips SDK-owned componentization so an external raw-module linker can consume the standard NetWasmComponentInput and NetWasmComponentRuntime contract. The default false value preserves executable component builds.

NetWasm library projects intentionally reject dotnet run and dotnet publish for the netwasm0.1 inner build. Desktop inner builds of a dual-target library continue to use the stock SDK.

The SDK-owned pack boundary is selected only for projects declaring netwasm0.1. Desktop-only projects continue through the stock NuGet pack targets.

See the repository's package-consumer quickstart for the pinned Emscripten activation and application templates.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0 57 9/29/2026
0.5.0-preview.1 38 9/29/2026
0.4.3 111 9/27/2026
0.4.3-preview.1 41 9/27/2026
0.4.2 107 9/25/2026
0.4.2-preview.1 50 9/25/2026
0.4.1 124 9/22/2026
0.4.0 105 9/21/2026
0.3.0 127 9/20/2026
0.3.0-preview.1 61 9/20/2026
0.2.4 91 9/20/2026
0.2.4-preview.1 57 9/20/2026
0.2.3 94 9/18/2026
0.2.3-preview.1 61 9/18/2026
0.2.2 100 9/18/2026
0.2.2-preview.1 69 9/18/2026
0.2.0 116 9/16/2026
0.2.0-preview.1 60 9/16/2026
0.1.0 126 9/15/2026
0.1.0-rc.3 68 9/15/2026
Loading failed