Migrating into a blank .NET MAUI template
This method of moving your existing app code into a new .NET MAUI app is used mainly for smaller, simpler apps that do not have a lot of external dependencies, such as NuGet, or native libraries. The largest benefit of this method is that your migrated app will be in a single project, targeting all the .NET MAUI-supported platforms. If your original app only targeted Android and iOS, using this method could get you Mac Catalyst and Windows targets for free. Using .NET Upgrade Assistant will not add any platforms that you didn’t already target.
To illustrate these steps, we will create a new project, just like we did in Chapter 2. This time, however, we will have to create a Xamarin.Forms project first.
Creating a new Xamarin.Forms app
The following steps will guide you through creating a new Xamarin.Forms project:
- Open Visual Studio 2022 and select Create a new project:
Figure 3.1 –...