Search code examples
asp.net-core-mvc.net-6.0

ASP.NET: Core_WebApp vs. Core_WebApp (MVC) - .NET 6


I wanted to experiment a little with the new project templates in Visual Studio 2022 and noticed that there are 2 project types:

  • ASP.NET Core Web App
  • ASP.NET Core Web App (Model-View-Controller)

When I visit the official ASP.NET website from Microsoft, I saw that they are promoting the non-mvc version, which resembles a little the WebForms at least with its code-behind logic.

So what's going on here? Is Microsoft silently deprecating the usage of MVC pattern? If we start a brand new non-blazor web project, which way should we go? Which one is more future-proof? My question is merely based on the future plans of Microsoft and not on a debate, what architectural pattern we should use.


Solution

  • I noticed that my question is already answered here:

    Why is Razor Pages the recommended approach to create a Web UI in Asp.net Core?

    and here:

    https://learn.microsoft.com/en-us/dotnet/architecture/porting-existing-aspnet-apps/comparing-razor-pages-aspnet-mvc