Hi, In this tutorial, I am going to start a series of ASP NET Core tutorials in step by step. Where you will learn many things about ASP NET Core. First-of-all, In this ASP NET Core tutorial, I will show you the introduction of ASP NET Core. There are following points that you will learn in this tutorial.
- History of ASP NET Core
- What is ASP NET Core?
- Why we use ASP NET Core.
Let’s start in step by step.
History of ASP.NET Core
In 1996, Microsoft released ASP framework which stands for Active Server Pages. It is also known as Classic ASP. It was the first step to have server-side scripting to dynamic web pages. Then in 2002, Microsoft released dot net(.net) framework. In this framework, Microsoft released ASP.NET Web forms. This evolution made the creation of web pages similar to windows form application. But unfortunately, there were some downsides in web forms. One of the biggest downsides was the page lifecycle. When requesting the page, a number of events were fired. So, getting to know all of these events was quite a bit of task.
Then in 2008, Microsoft officially released the first version of ASP.NET MVC (Model, View, Controller). Separation of concern technique was used in this version and tried to overcome most of the problems with the web forms. MVC approach is much easier for Unit testing. Then in 2016, Microsoft released a new version of ASP.NET Core. Dotnet Core is the very first version of cross-platform of dot net.
What is ASP.NET Core?
ASP.NET Core is a cross-platform. It is open source and high-performance framework for building modern cloud-based web applications and web APIs using MVC (Model, View, Controller) approach. It is built on .NET Core runtime. It can also run on the full .NET framework for maximum compatibility. It is the latest framework that is developed from scratch parallel with .NET 4.6 framework and with some architectural changes. These changes make .NET Core much lightweight, leaner, highly testable and much more modular framework.
These are below some changes
- NET Core has the ability to use the web server other than IIS.
- NET Core has the ability to use unification between Web API and MVC and Web Pages.
- NET Core has the ability to work as a cross-platform.
And much more.
Why we use ASP.NET Core?
ASP.NET Core is a redesign of ASP.NET with some architectural changes. Which makes it leaner and modular.
So, there the following benefits that ASP.NET Core provide.
- It can use a web server other than Internet Information Services (IIS).
- It is open source.
- It is based on cross-platform. You can build and run your application on Windows, Mac and Linux.
- It includes unified programming model that combines MVC, Web Pages and Web APIs.
- It has the ability of Dependency Injection.
- Modular request pipeline.
- It is much easier for unit testing.
- It uses Tag Helpers that make razor markup more natural.
- It is based on a set of granular and well factor NuGet packages.
- Tooling that simplifies modern web development.
- Cloud-ready environment, based configuration system.
- MVC approach helps make your web APIs and web apps testable.
So, ASP.NET Core provides you all the facilities that you need to make your application leaner, lightweight, testable and to make your application for cross-platform like Mac, Linux, and Window.
Leave a Reply