Technical requirements
To follow the descriptions in this chapter, you will need to create an ASP.NET Core MVC application. To do this, open your console, shell, or Bash terminal, and change to your working directory. Then, use the following command to create a new MVC application:
dotnet new web -n MiddlewaresSample -o MiddlewaresSample
Now, open the project in Visual Studio by double-clicking the project file, or in Visual Studio Code by typing the following command in the already-open console:
cd MiddlewaresSample code .
Note
The simple web
project template changed in .NET 6.0. In version 6.0, Microsoft introduced minimal APIs and changed the project template to use the minimal API approach. This is a simpler way to bootstrap and to get started with a web application.
All of the code samples in this chapter can be found in the GitHub repository for this book at https://github.com/PacktPublishing/Customizing-ASP.NET-Core-6.0-Second-Edition/tree/main/Chapter08.
...