Skip to content

Commit f09f703

Browse files
authored
Merge pull request #65 from jsturtevant/fix-readme
Fix up readme so instructions work
2 parents b40baa3 + d21b5e4 commit f09f703

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)