The .NET platform is made up of several developer tools, programming languages, and libraries that can be utilized for building different types of applications like web, mobile, desktop, games, and IoT. Primarily, .NET Apps are written in the following languages:
Aside from the fact that the languages listed above run on the .NET platform, they are great for building type-safe and object-oriented applications.
In recent times, ASP.NET
has been used to develop web applications, but due to a steady evolutionary change, a new development was launched. It is the ASP.NET
Core version 1.0.
Note:
ASP.NET
Core 1.0 is not a continuation ofASP.NET
, but a new framework that unitesASP.NET
MVC andASP.NET
Web API into a single programming model.
ASP.Net
Core is the latest web-development framework developed by Microsoft, and it is engineered to be fast, easy, and work across different platforms. It is used for building web apps on the .NET platform.
It is a free and open-source web framework and a successor of the .NET framework that can run on macOS, Linux, and Windows.
ASP.NET
CoreASP.NET
Core architectural design has birthed a leaner and modular framework.ASP.NET
Core does not support System.Web.dll but supports a collection of granular and well factored NuGet packages.ASP.NET
CoreASP.NET
Core, compilation happens continuously, such that a developer does not have to invoke the compilation command upon deployment.ASP.NET
Core, the Modular framework is now being distributed as NuGet packages. So, instead of installing a whole framework that may not be needed for that project. A NuGet package with the needed feature can be installed.ASP.NET
Core provides optimized cloud-based applications.ASP.NET
Core Host-agnostic via Open Web Interface for .NET (OWIN) and support runs in Internet Information Services (IIS).ASP.NET
Core has a unified story for building web UI and web APIs.ASP.NET
Core has in-built support for dependency injection.ASP.NET
CoreBelow are some of the components of ASP.NET
Core:
ASP.NET
CoreASP.NET
Core is largely supported by visual studio for application development.
Below are simple three steps to create an App using ASP.NET
:
I have used some terms in expressing ASP.NET
core idea and I will briefly explain them as I conclude:
ASP.NET
Core has this feature based on the framework in which it was created.ASP.NET
Core has a lot of feature and implementations (reference can be made to the Implementations of ASP.NET
Core session)that enhances the performance of an application.ASP.NET
Core has made testing quite easy. Although ASP.NET
Core supports automated integration and functional testing, it is well structured such it supports Object-Oriented Programming SOLID principles which makes it readable and reusable.ASP.NET
Core, Inversion of control between classes and their dependencies by using dependency injection. In the business logic, classes are created with interfaces and these interfaces and their implementation are injected using a ConfigureServices
method in the Startup class.A very simple example is in the code snippet below.
public void ConfigureServices(IServiceCollection services){services.AddScoped<IMyDependency, MyDependency>();}
In conclusion, ASP.NET
Core is a composition of both front-end, business logic/back-end, and Database.