The goal of this repository is to provide feature-rich but less boiler plate starting point for any .Net project to kick start their Blazor MAUI application.
- Built on .NET 6.0
- Code sepereation for Web and MAUI
-
Web
- All Web application related files are added in this project. Built on Blazor Server architecture
- When Web application is started, the flow goes as below
- Program.cs → BlazorLibrary/Pages/_Host.cshtml → BlazorLibrary/Pages/_Layout.cshtml (this file refers the css in Maui/wwwroot and also Blazorlibrary/wwwroot)
- BlazorLibrary/App.Razor -> This loads BlazorLibrary.Shared.MainLayout
-
MAUI
- All MAUI application related files are added in this project
- When MAUI application is started, the flow goes as below
- MauiProgram.cs → MainPage.xaml.cs → wwwroot/index.html (this file refers the css in Maui/wwwroot/css and also Blazorlibrary/wwwroot)
- Main.razor -> This loads BlazorLibrary.Shared.MainLayout
-
BlazorLibrary
- SitePages - All custom Razor Pages must be added in this folder
- wwwroot - All custom files here that are common for web and maui; make sure to update the references in _Layout.cshtml and index.html
-
ClassLibrary
- Controller - Controllers and logic classes must goto this folder
- Model - All Model classes must goto this folder
- Service - All external interacting service classes must goto this folder
This project is licensed with the MIT license.