Creating a new .NET MAUI Blazor project
To learn how to develop a Blazor Hybrid app, we must upgrade our PassXYZ.Vault
project to support the Blazor-based UI. We don’t have to do this from scratch – we can convert our current project so that it supports the Blazor UI. In this way, we can build both a XAML-based app and a Hybrid app using the same project. Before we add the Blazor UI to our app, we can create a new .NET MAUI Blazor project with the same app name first so that we can refer to this new project to convert our project into a .NET MAUI Blazor project.
We can create a new .NET MAUI Blazor project from the command line or Visual Studio. We will demonstrate both in this section.
Generating a .NET MAUI Blazor project with the dotnet command line
Let’s create a new project using the .NET command line first. This can be done on either Windows or macOS.
We can create a new project using the shortname maui-blazor listed in Table 7.2:
dotnet new...