My company is trying to setup some guidance on which technology to use for building applications. In doing my research I am getting confused.
It seems there are 3 ASP.NET technologies.
MVC is fairly clear to me as it has been around for a long time.
But I am getting confused between Razor and Razor pages. I can find lots of info on Razor Pages, but limited stuff that will compare them.
We are looking to target ASP.Net Core. So my questions are:
Razor is a templating syntax that was introduced in 2010 as part of the ASP.NET Web Pages framework. It was also adopted as a view engine in ASP.NET MVC 3 at the same time.
Razor Pages is a page-based web development framework that leverage the Razor templating syntax and sits on top of the ASP.NET Core MVC framework. It is the recommended framework for building page-focused server-side web applications in .NET Core. In other words, Microsoft are recommending that you do not use MVC for server-side HTML generation when you move the ASP.NET Core.
So to directly answer your questions: