troubleshooting Question

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

Avatar of maqskywalker
maqskywalker asked on
ASP.NETMicrosoft.NET ProgrammingMicrosoft Visual Studio
4 Comments3 Solutions35 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

Example 2: ASP.NET Core 3.0 Razor Pages

Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8

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.
Chinmay Patel
Chief Technology Ninja
Join our community to see this answer!
Unlock 3 Answers and 4 Comments.
Start Free Trial
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 3 Answers 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