Country statistics quiz built with Avalonia UI 12.2, .NET 11, and C# 15. Desktop (Windows, Linux, macOS) and Android from one solution, one shared ViewModel. No ads, no payments, no tracking. Free forever.
| Platform | Architecture | Download |
|---|---|---|
| Windows | x64, ARM64 | latest release |
| Linux | x64, ARM64 | latest release |
| macOS | x64 (Intel), ARM64 (Apple Silicon) | latest release |
| Android 7.0+ (API 24) | APK | latest release |
Android: point Obtainium at the releases. versionCode is the CI run number.
If a platform build fails or GitHub cancels its runner, the other platforms still ship as a full release.
dotnet restore
dotnet build
dotnet run --project src/MyDesktopApplication.DesktopAndroid (requires the workload):
dotnet workload install android
dotnet build src/MyDesktopApplication.Android -c Releasedotnet testEvery button gives feedback:
- Sound: short tones synthesised in code (
ToneSynthesizer) — no audio assets, no audio packages. Desktop plays them withwinmm(PlaySound) on Windows,afplayon macOS, and the first available ofpw-play,paplay, oraplayon Linux. Android usesSoundPool. - Haptics: Android only (
Vibrator/VibratorManager, requires theVIBRATEpermission). Desktop has none. - Visual: buttons scale down briefly while pressed, on every platform.
Cues: tap (any button), correct, incorrect. A 🔊/🔇 toggle in the footer mutes sound and haptics for the session (not persisted — no database change, so existing saves are untouched).
src/
MyDesktopApplication.Core entities, interfaces (no UI, no IO)
MyDesktopApplication.Infrastructure EF Core SQLite, repositories, OpenTelemetry
MyDesktopApplication.Shared CountryQuizViewModel, converters, tone synthesis
MyDesktopApplication.Desktop Windows/Linux/macOS head
MyDesktopApplication.Android Android head
tests/
MyDesktopApplication.Core.Tests
MyDesktopApplication.Integration.Tests
MyDesktopApplication.UI.Tests
One .slnx, one workflow, one build. Converters and app bootstrap live in Shared (no per-platform duplication). Each platform head only registers its own services (database path, feedback implementation).
global.jsonpins the .NET 11 SDK withrollForward: latestFeatureandallowPrerelease: true, so a local11.0.100-rcor any newer11.0.1xxboth work. CI installs11.0.x.- Central Package Management via
Directory.Packages.props; common settings inDirectory.Build.props. TreatWarningsAsErrorsin Release.- Android runs on CoreCLR (Mono was removed in .NET 11); the old
RunAOTCompilation/UseInterpreterproperties are gone.
All MIT, Apache-2.0, or BSD. No package whose use depends on payment of any kind.
| UI | Avalonia 12.2.0 (Fluent2 theme) |
| MVVM | CommunityToolkit.Mvvm 8.4.2 |
| Data | EF Core SQLite 11.0.0 |
| Telemetry | OpenTelemetry 1.21.0 |
| Tests | xunit.v3 4.0.3, Shouldly 4.3.0, NSubstitute 6.2.0, coverlet 10.1.1 |
| Platform | Status |
|---|---|
| Windows x64 / ARM64 | ✅ |
| Linux x64 / ARM64 | ✅ |
| macOS x64 / ARM64 | ✅ |
| Android 7.0+ | ✅ |
| iOS | ❌ (requires Apple Developer account — $99/year) |
MIT License — free for any use. All dependencies are MIT, Apache-2.0, BSD, or Public Domain licensed.