Building and debugging
As we mentioned in Chapter 1, Getting Started with .NET MAUI, we cannot build and test every target using a single platform. Please refer to Table 1.8 for the available build targets on Windows and macOS platforms. For the sake of simplicity, we will build and test targets Windows and Android on Windows. For iOS and macOS builds, we will do it on the macOS platform.
Once we’ve set things up, we can start building and debugging our application.
Let’s begin with building and testing on the Windows platform. We can choose the framework that we want to run or debug, depending on our needs, as depicted in Figure 2.6:
Figure 2.6: Building and debugging
Windows
We can run or debug a Windows build on a local machine by choosing net8.0-windows10.0.19041.0 as the framework. However, to accomplish this, we must first enable Developer Mode on Windows, if it’s not yet been activated. Please refer to Figure 2.7 for guidance on...