troubleshooting Question

ASP.NET Core MVC versus ASP.NET Core Razor Pages

Avatar of maqskywalker
maqskywalker asked on
.NET ProgrammingASP.NETMicrosoftMicrosoft Visual Studio
4 Comments1 Solution34 ViewsLast Modified:
I was looking at Microsoft's documentation for ASP.Net Core.

I saw these 2 examples.



Example 1:  ASP.NET Core 2.2 MVC using Razor View


Tutorial: Get started with EF Core in an ASP.NET MVC web app
https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/intro?view=aspnetcore-3.1


Example 2: ASP.NET Core 3.0 Razor Pages

Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8
https://docs.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-3.1&tabs=visual-studio


On the code download for Example 1, the ASP.NET Core MVC example, the project is a ASP.NET Core 2.2 project.


On the code download for Example 2, the ASP.NET Core Razor Pages example, the project is a ASP.NET Core 3.0 project.



Is Microsoft shifting away from ASP.NET Core MVC Razor Views to ASP.NET Core Razor Pages ?

Anyone know ?

What I mean is, for a new project, Visual Studio 2019 gives you 2 choices , either  ASP.NET Core MVC  or ASP.NET Core Razor Pages.


Is it just a preference ? I read a little and I read Razor Pages simplifies the application structure over ASP.NET Core MVC structure.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros