Building the weather app
It’s time to start building the app. Create a new blank .NET MAUI app using the following steps for Visual Studio for Mac:
- Open Visual Studio for Mac and click on New:
![Figure 8.1 – Visual Studio 2022 for Mac start screen](https://static.packt-cdn.com/products/9781837634910/graphics/image/B19214_08_1.jpg)
Figure 8.1 – Visual Studio 2022 for Mac start screen
- In the Choose a template for your new project dialog, use the .NET MAUI App template, which is under Multiplatform | App, then click Continue:
![Figure 8.2 – New project](https://static.packt-cdn.com/products/9781837634910/graphics/image/B19214_08_2.jpg)
Figure 8.2 – New project
- In the Configure your new .NET MAUI App dialog, ensure the .NET 7.0 target framework is selected, then click Continue:
![Figure 8.3 – Choosing the target framework](https://static.packt-cdn.com/products/9781837634910/graphics/image/B19214_08_3.jpg)
Figure 8.3 – Choosing the target framework
- In the Configure your new .NET MAUI App dialog, name the project
Weather
, then click Create:
![Figure 8.4 – Naming the new app](https://static.packt-cdn.com/products/9781837634910/graphics/image/B19214_08_4.jpg)
Figure 8.4 – Naming the new app
If you run the app now, you should see something like the following:
![Figure 8.5 – Weather app on macOS](https://static.packt-cdn.com/products/9781837634910/graphics/image/B19214_08_5.jpg)