File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed
Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,25 @@ Add the platform specific LLVM package:
4949
5050```
5151## On Linux
52- dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --version 10.0.0-alpha.1.24573.1 -- prerelease
52+ dotnet add package runtime.linux-x64.microsoft.dotnet.ilcompiler.llvm --prerelease
5353
5454## or
5555
5656## On Windows
57- dotnet add package runtime.windows -x64.microsoft.dotnet.ilcompiler.llvm --version 10.0.0-alpha.1.24573.1 --prerelease
57+ dotnet add package runtime.win -x64.microsoft.dotnet.ilcompiler.llvm --prerelease
5858```
5959
60- Now you can ` dotnet publish ` to produce a ` .wasm ` file using NativeAOT compilation.
60+ Edit the ` .csproj ` file, adding the following inside the ` <PropertyGroup> ` :
61+
62+ ```
63+ <RuntimeIdentifier>wasi-wasm</RuntimeIdentifier>
64+ <UseAppHost>false</UseAppHost>
65+ <PublishTrimmed>true</PublishTrimmed>
66+ <InvariantGlobalization>true</InvariantGlobalization>
67+ <SelfContained>true</SelfContained>
68+ ```
69+
70+ Now you can ` dotnet build ` to produce a ` .wasm ` file using NativeAOT compilation.
6171
6272### 4. Run the WebAssembly binary
6373
You can’t perform that action at this time.
0 commit comments