Building the news app
This chapter will be all about building a news app from the beginning. It will guide you through every step, but it will not go into every detail. For that, we recommend Chapter 2, Building Our First .NET MAUI App, which goes into more detail.
Happy coding!
Setting up the project
This project, like all the rest, is a File | New | Project...-style project. This means that we will not be importing any code at all. So, this first section is all about creating the project and setting up the basic project structure.
Creating the new project
The first step is to create a new .NET MAUI project:
- Open Visual Studio 2022 and select Create a new project:
Figure 4.1 – Visual Studio 2022
This will open the Create a new project wizard.
- In the search field, type in
maui
and select the .NET MAUI App item from the list:
Figure 4.2 – Create a new project
- Click Next...