What is ASP.NET Core?

ASP.NET Core is the first cross-platform version of Microsoft's framework for building web-based applications. It sits on top of .NET Core, which is an open source development platform, consisting of a set of framework libraries, a software development kit (SDK) and a runtime.

ASP.NET Core is now included within .NET and features cross-platform desktop application development frameworks as well as cross-platform web development frameworks.

Why should you choose ASP.NET Core?

Web development is changing. There is a demand for more modular frameworks, where you decide the features to include in your application. Applications should be cloud-ready - designed to run on any platform and to scale up quickly. They should also embrace client-side frameworks and make developing RESTful APIs easy. And the frameworks themselves need to be nimble. They need to iterate quickly to deliver new features in response to new innovations in the web development sphere. And developers want to be able to choose the tools they use to author sites.

Some frameworks already address these concerns, such as Express that runs on Node.js. The old version (.NET Framework) of ASP.NET doesn't. It is wedded to Internet Information Services, a Windows-only web server. New features took ages to come to market because of the way that the framework is tied to the full .NET framework. And it's very dependent on Visual Studio - a monster of an IDE that only runs on Windows.

Note that the product known as Visual Studio for Mac is not actually a version of the IDE that most .NET developers are familiar with. It is a version of Xamarin Studio that supports .NET Core development.

ASP.NET Core is designed to be modular. The HTTP pipeline is composed of separate components that can be plugged in as needed. The benefits that this approach delivers include:

  • your application is more lightweight as it only incorporates the components it needs
  • you can choose pipeline components from multiple sources
  • you can even create your own version of the pipeline components and use those instead
  • you can choose which platform to host your application on
  • new features are added much more quickly than in previous versions of ASP.NET.

ASP.NET Core provides a web development framework based on the Model-View-Controller (MVC) pattern. On top of that sits the Razor Pages framework for developers who are more familiar with or prefer a page-centric development approach to building web applications. In addition, ASP.NET Core includes Blazor, a Single Page Application framework that enables you to use C# as the client-side programming language. ASP.NET Core also includes a framework for developing REST-based web services (Web API) and a Web Sockets-based framework (SignalR) which enables real-time updating of page content initiated by the server.

Last updated: 15/12/2022 08:37:43

© 2018 - 2024 - Mike Brind.
All rights reserved.
Contact me at Outlook.com