Setting up a new .NET MAUI project
In this chapter, we will create and configure a new .NET MAUI project, which will form the basis for further development of our password manager app. Given that the default .NET NAUI project template is a very simple one, we require a more robust project framework to establish the base project structure.
Xamarin.Forms project templates provide suitable options. In particular, there is a template that incorporates the Shell and Model-View-View Model (MVVM) pattern setup. We’ll migrate this into our .NET MAUI project, which will also provide us with the opportunity to learn how to migrate a Xamarin.Forms project to .NET MAUI. Ultimately, we’ll create our very own Visual Studio project template.
To create a new .NET MAUI project, we can use Visual Studio or the command line.
Creating a new project using Visual Studio
To create a new .NET MAUI project, follow these steps:
- Launch Visual Studio 2022 and select Create...