Configuring development environments
We’ll start to develop our first minimal API in the next chapter, but before that, let’s create the project structure needed for us to start writing code.
To build minimal APIs, we need to be working within an ASP.NET Core project. Depending on whether you are using Visual Studio or Visual Studio Code, there are several ways you can create this type of project.
Creating a project in Visual Studio
Let’s begin by creating a project in Visual Studio:
- Open Visual Studio.
- The screen shown in the following figure gives you the option to search for the type of project you wish to create. Search for ASP.NET Core Empty and select it from the list, before clicking Next. (Make sure you choose the C# version of the template. Do not use the F# version, as this is not within the scope of this book.)
Figure 1.5: Visual Studio’s new project creation screen
- Give your new project...