关于[Razor Pages Startup in .NET 6]的摘要:
The ASP.NET Core templates have been updated to use the latest C# language features, and a new minimal hosting API in .NET 6. The main driver behind these changes is simplicity. The ASP.NET team want to remove unnecessary code from your app, so you have less code to understand and look after, and there is a lower barrier to entry for newer C# developers. They want to provide "a more focused, low ceremony way of creating a web application". In a .NET 6 app, your services and middleware configuration take place in the Program.cs file instead of being delegated to a separate Startup class with its constructor, ConfigureServices and Configure methods. Here's what the revised version of Program.cs looks like...
原文地址: https://www.mikesdotnetting.com/article/357/razor-pages-startup-in-net-6