In this lesson we discussed about ASP.Net Core Overview. As already some other .NET framework is already captured the market then why it is introduced, also we discussed it here the advantages of using of ASP.NET Core. Please follow all the steps of ASP.Net Core tutorial in this link.
What is ASP.NET Core
ASP.NET Core is a free and open-source web framework and successor to ASP.NET, developed by Microsoft. It is a modular framework that runs on both the full .NET Framework, on Windows, and the cross-platform. ASP.NET Core is the new version of the ASP.NET web framework mainly targeted to run on .NET Core platform.
Same as .NET Core, it was architected modular with minimum overhead, and then other more advanced features can be added as NuGet packages as per application requirement. This results in high performance, require less memory, less deployment size, and easy to maintain.
It was architected to provide an optimized development framework for apps that are deployed to the cloud or run on-premises. It consists of modular components with minimal overhead, so you retain flexibility while constructing your solutions. You can develop and run your ASP.NET Core apps cross-platform on Windows, Mac and Linux.
ASP.NET Core is an open source framework supported by Microsoft and the community, so you can also contribute or download the source code from the ASP.NET Core Repository on Github.
Advantages of ASP.NET Core
- Supports Multiple Platforms: ASP.NET Core applications can run on Windows, Linux, and Mac. So you don’t need to build different apps for different platforms using different frameworks.
- Fast: ASP.NET Core no longer depends on System.Web.dll for browser-server communication. ASP.NET Core allows us to include packages that we need for our application. This reduces the request pipeline and improves performance and scalability.
- IoC Container: It includes the built-in IoC container for automatic dependency injection which makes it maintainable and testable.
- Integration with Modern UI Frameworks: It allows you to use and manage modern UI frameworks such as AngularJS, ReactJS, Umber, Bootstrap, etc. using Bower (a package manager for the web).
- Hosting: ASP.NET Core web application can be hosted on multiple platforms with any web server such as IIS, Apache etc. It is not dependent only on IIS as a standard .NET Framework.
- Code Sharing: It allows you to build a class library that can be used with other .NET frameworks such as .NET Framework 4.x or Mono. Thus a single code base can be shared across frameworks.
- Side-by-Side App Versioning: ASP.NET Core runs on .NET Core, which supports the simultaneous running of multiple versions of applications.
- Smaller Deployment Footprint: ASP.NET Core application runs on .NET Core, which is smaller than the full .NET Framework. So, the application which uses only a part of .NET CoreFX will have a smaller deployment size. This reduces the deployment footprint.
- New tooling that simplifies modern Web development.
- Single aligned web stack for Web UI and Web APIs.
- Cloud-ready environment-based configuration.
- Built-in support for dependency injection.
- Tag Helpers which makes Razor markup more natural with HTML.
- Ability to host on IIS or self-host in your own process.
.NET Core vs ASP.NET Core
|.NET Core||ASP.NET Core|
|Open-source and Cross-platform||Open-source and Cross-platform|
|.NET Core is a runtime to execute applications build on it.||ASP.NET Core is a web framework to build web apps, IoT apps, and mobile backends on the top of .NET Core or .NET Framework.|
|Install .NET Core Runtime to run applications and install .NET Core SDK to build applications.||There is no separate runtime and SDK are available for ASP.NET Core. .NET Core runtime and SDK includes ASP.NET Core libraries.|
|.NET Core GitHub Repository:|
.NET Core Runtime
.NET Core SDK
|ASP.NET Core GitHub Repository: https://github.com/dotnet/aspnetcore|
|.NET Core 3.1 – latest version||ASP.NET Core 3.1|
There is no separate versioning for ASP.NET Core. It is the same as .NET Core versions.
This lesson described about ASP.Net Core Overview, here we discussed about cons of ASP.Net Core and made comparison with .NET Core. If you have any suggestion please free to write in the comment box.
Jayant TripathyCoder, Blogger, YouTuber
A passionate developer keep focus on learning and working on new technology.