From d21b5e46ba6012d2ef32cb0b301c84ff7540d3d7 Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Wed, 8 Jan 2025 15:02:23 -0800 Subject: [PATCH] Fix up readme so instructions work Signed-off-by: James Sturtevant --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b17fcd4..98aec9e 100644 --- a/README.md +++ b/README.md @@ -49,15 +49,25 @@ Add the platform specific LLVM package: ``` ## On Linux -dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --version 10.0.0-alpha.1.24573.1 --prerelease +dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --prerelease ## or ## On Windows -dotnet add package runtime.windows-x64.microsoft.dotnet.ilcompiler.llvm --version 10.0.0-alpha.1.24573.1 --prerelease +dotnet add package runtime.win-x64.microsoft.dotnet.ilcompiler.llvm --prerelease ``` -Now you can `dotnet publish` to produce a `.wasm` file using NativeAOT compilation. +Edit the `.csproj` file, adding the following inside the ``: + +``` +wasi-wasm +false +true +true +true +``` + +Now you can `dotnet build` to produce a `.wasm` file using NativeAOT compilation. ### 4. Run the WebAssembly binary