- Docker Desktop - See the Wasm workloads documentation
TBD - or see the original .NET wasiconsole
template README.
docker buildx build --platform wasi/wasm --load -t wasiconsole https://github.com/lbussell/dotnet-docker-wasi.git#:wasiconsole
docker run --rm --runtime=io.containerd.wasmedge.v1 --platform=wasi/wasm wasiconsole
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
<OutputType>Exe</OutputType>
<PublishTrimmed>true</PublishTrimmed>
+ <WasmSingleFileBundle>true</WasmSingleFileBundle>
+ <InvariantGlobalization>true</InvariantGlobalization>
+ <Nullable>enable</Nullable>
</PropertyGroup>
</Project>