Templates
Shiny.Templates is the fastest way to get a .NET MAUI app up and running with all the Shiny libraries. Skip the boilerplate — permissions, plists, entitlements, platform-specific files, DI wiring, and logging are all set up for you. Just pick your options and start building.
Features
Section titled “Features”- Multiple UI markup options — XAML, Blazor, or C# Markup
- Push notifications — choose between full native or Azure Notification Hubs
- Authentication — Web Authenticator, MSAL Basic, MSAL B2C, or MSAL Broker
- SQLite database — pre-configured and ready to use
- Localization — set up out of the box
- Logging — SQLite and Sentry.IO integration
- AppSettings.json — generated with strongly-typed settings classes
- Dependency injection — pre-configured in
MauiProgram.cs - Shiny startup services — scaffolded and registered
- Android Auto & iOS CarPlay — optional support
- Apple PrivacyInfo.xcprivacy — generation assistance included
- 40+ community and Microsoft libraries — curated and configured
-
Install the templates:
Terminal window dotnet new install Shiny.Templates -
Create a new project:
Terminal window dotnet new shinymaui -n MyApp
Works with Visual Studio 2022 (Windows & Mac), and JetBrains Rider 2024+.
What’s Included
Section titled “What’s Included”MAUI App Template
Section titled “MAUI App Template”The main shinymaui template scaffolds a full cross-platform mobile app with:
- Platform-specific configuration for iOS, macOS, and Android
- Dependency injection pre-wired in
MauiProgram.cs - Logging with SQLite and Sentry.IO
- AppSettings.json with strongly-typed settings classes
- Shiny startup service scaffolding
- SQLite database preparation
- Localization setup
Item Templates
Section titled “Item Templates”- BluetoothLE Hosted Managed Characteristic — scaffold a BLE GATT characteristic
- Shiny Job — scaffold a background job
Included Libraries
Section titled “Included Libraries”The template integrates a curated set of libraries across several categories:
| Category | Libraries |
|---|---|
| Core | .NET MAUI, Shiny.NET, Shiny Mediator, Prism, ReactiveUI, MVVM Community Toolkit |
| Database & Storage | SQLite.NET-pcl, Shiny SqliteDocumentDb, Community LiteDB AOT |
| UI Components | MAUI Community Toolkit, Uranium UI, FFImageLoading, MudBlazor, Radzen Blazor, FluentUI |
| Networking | Refit HTTP client |
| Monitoring | Sentry error tracking |
| Graphics | SkiaSharp |
| Utilities | Humanizer, Units.NET |
| Native Plugins | Barcode scanning, biometrics, audio, screen recording, calendar, OCR |