Summary
With that, you have learned how to easily create an ASP.NET Core 5 project without an IDE.
You've understood how the Program.cs
file works, executing the main method, and starting the application. You've also found out what the Startup.cs
file's responsibilities are: to enable services through the built-in dependency injection and collect all the middleware running in order.
Lastly, you've seen what's new in an ASP.NET Core Web API project.
ASP.NET Core 5 sets up the Swagger documentation for you right off the bat when you create a Web API project. You have seen the importance of Swagger documentation in helping developers see the existing APIs and check their details.
In the next chapter, we will create another .NET solution and project with clean architecture in mind.