Commit 9616b74
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 ddd8c04 commit 9616b74
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 | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | 71 | | |
| |||
0 commit comments