Configure SQLite for use with WebAssembly
To configure SQLite for use with WebAssembly follow these steps:
- Add NuGet package
dotnet add package SQLitePCLRaw.bundle_e_sqlite3
- Modify .csproj and add the following:
<PropertyGroup> <WasmBuildNative>true</WasmBuildNative> </PropertyGroup>
- Make sure the “wasm-tools” workload is installed on the local machine in order to build the project:
dotnet workload install wasm-tools