Skip to content

Commit e70e165

Browse files
authored
chore: Adjust publish doc
1 parent 6e2e367 commit e70e165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/runtime-execution-modes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Finally, runtime statistics are maintained by the jiterpreter and can be display
4949

5050
This mode enables AOT compilation for most of the assemblies, with [some specific exceptions](https://github.com/dotnet/runtime/issues/50609).
5151

52-
By default, this mode is only enabled when running `dotnet publish`.
52+
This mode is only active when running `dotnet publish`, `dotnet build -r Release` or any other build mode will not activate it.
5353

5454
To enable AOT compilation on normal builds, use the following:
5555

@@ -106,7 +106,7 @@ To create a profiled build:
106106
<WasmShellMonoRuntimeExecutionMode>InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>
107107
```
108108

109-
- Build your application again
109+
- Publish your application again, using `dotnet publish`. (`dotnet build` does not activate AOT)
110110

111111
Note that the AOT profile is a snapshot of the current set of assemblies and methods in your application. If that set changes significantly, you'll need to re-create the AOT profile to get optimal results.
112112

0 commit comments

Comments
 (0)