Skip to content

Commit 68275d9

Browse files
authored
WASM build tools additional coverage (#27302)
1 parent 33d4204 commit 68275d9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

aspnetcore/blazor/tooling.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,23 @@ The .NET WebAssembly build tools are based on [Emscripten](https://emscripten.or
11711171
* For the **ASP.NET and web development** workload in the Visual Studio installer, select the **.NET WebAssembly build tools** option from the list of optional components.
11721172
* Execute `dotnet workload install wasm-tools` in an administrative command shell.
11731173

1174+
When [Ahead-of-time (AOT) compilation](xref:blazor/host-and-deploy/webassembly#ahead-of-time-aot-compilation) is used, [WebAssembly Single Instruction, Multiple Data (SIMD)](https://github.com/WebAssembly/simd/blob/master/proposals/simd/SIMD.md) is supported, **except for Apple Safari at this time**. Use the `<WasmEnableSIMD>` property in the app's project file (`.csproj`) with a value of `true`:
1175+
1176+
```xml
1177+
<PropertyGroup>
1178+
<WasmEnableSIMD>true</WasmEnableSIMD>
1179+
<RunAOTCompilation>true</RunAOTCompilation>
1180+
</PropertyGroup>
1181+
```
1182+
1183+
To enable WebAssembly exception handling, use the `<WasmEnableExceptionHandling>` property in the app's project file (`.csproj`) with a value of `true`:
1184+
1185+
```xml
1186+
<PropertyGroup>
1187+
<WasmEnableExceptionHandling>true</WasmEnableExceptionHandling>
1188+
</PropertyGroup>
1189+
```
1190+
11741191
> [!NOTE]
11751192
> .NET WebAssembly build tools for .NET 6 projects
11761193
>

0 commit comments

Comments
 (0)