The desktop sample demonstrates the full surface area of the library in an Avalonia application.
Run the desktop sample:
dotnet run --project samples/NativeWebView.Sample.Desktop/NativeWebView.Sample.Desktop.csproj -c Debug
The sample exercises:
NativeWebView navigation, messaging, printing, state, and native handles.Embedded, GpuSurface, and Offscreen.NativeWebDialog actions on the desktop runtime backends: Windows, macOS, and Linux.WebAuthenticationBroker flows on desktop, plus shared controller behavior used by the mobile and browser runtime paths.Run the smoke path used by CI:
dotnet run --project samples/NativeWebView.Sample.Desktop/NativeWebView.Sample.Desktop.csproj -c Debug -- --smoke
This path validates backend contracts and capability coverage with a predictable command-line flow.
Generate a readiness report from the diagnostics sample:
dotnet run --project samples/NativeWebView.Sample.Diagnostics/NativeWebView.Sample.Diagnostics.csproj -- \
--platform all \
--output artifacts/diagnostics/platform-diagnostics-report.json \
--markdown-output artifacts/diagnostics/platform-diagnostics-report.md
For mobile or browser smoke validation:
./scripts/run-mobile-browser-sample-smoke.sh --configuration Release --platform all
This path is the right place to validate workload-gated iOS/Android backends and the browser runtime, including popup-based browser auth.
Use the feature explorer when you need to verify: