Commit 415cc4f
ahall
fix: suppress WASM0001 sqlite3_config/db_config varargs warnings on TodoApp.Uno browserwasm
The browserwasm head emits a WASM0001 warning for every fixed-arity
P/Invoke overload SQLitePCLRaw.provider.e_sqlite3 ships to work around
sqlite3_config/sqlite3_db_config being variadic (varargs) native
functions. This sample's actual SQLite usage (in-memory EF Core CRUD
via AppDbContext) never calls those functions directly, so the warning
is diagnostic-only noise from the WebAssembly SDK's build-time
native-interop check.
WASM0001 is a standard MSBuild task warning code (emitted via
TaskLoggingHelper.LogWarning in dotnet/runtime's WasmAppBuilder), so it
honors NoWarn like any other build warning - the same suppression
already documented for Blazor WASM in
docs/in-depth/client/advanced/blazor-wasm.md. Suppress it, scoped to
the browserwasm TFM only, following the existing
GetTargetPlatformIdentifier-conditional pattern used for
SuppressTrimAnalysisWarnings in the same file (see #521/#534).
Also add a short note to the Uno Platform sample docs pointing at the
Blazor WASM page for more detail on the warning and how to suppress it
in a consumer's own project.
Closes #5431 parent 98ee3ea commit 415cc4f
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- docs/samples/todoapp
- samples/todoapp/TodoApp.Uno/TodoApp.Uno
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
69 | 83 | | |
70 | 84 | | |
71 | 85 | | |
| |||
0 commit comments