The not so recent change of Microsoft's CEO has brought with it a great new wave of changes and innovations from Microsoft. One of the most notable of this is Microsoft's move towards open sourcing many if not all of its development stack. Microsoft and the developer community has embraced the transparency of open source software. In this post, I going to introduce asp.net core.
So what is asp.net core?
The asp.net team describes asp.net core as "an open source web framework for building modern web applications and services". It went ahead to say that asp.net core is a framework used for building a scalable web applications that can serve millions of users and requests and made to work with complex web capabilities like web api's, forms over data and real time communications etc.
In other words, asp.net core is the open source version of asp.net. It was built from scratch as a replacement of asp.net and also a framework meant to run on virtually any platform or environment.
Some of the features included in this new framework are:
- New modular HTTP request pipeline.
- Ability to run multiple .net framework versions side by side.
- Cloud-ready environment configuration.
- Ability to see changes without recompiling the project.
- You can either self-host the project or go with the good old IIS.
- Can be run on the .net core or on the full .net framework.
- It consists of modular components with minimum overheard.
- Finally the source code and bits for this new framework is open-sourced in GitHub.
Also, Asp.net core promises some new benefits. These are:
- open source.
- Unified mvc and web api.
- Dependency injection and middleware.
- Developer productivity
- Cross-plaform capability.
For more explanation of some of these benefits visit Intertech
To get started with using asp.net core you will need to:
- For windows users only: Install the .net core sdk using visual studio. (visit here for instructions on how to download and install visual studio 2015).
- For windows users with visual studio 2013 already installed: There are a few hoops for you guys to pass through before developing asp.net core app in visual studio 2013. Though working developing asp.net core in visual studio 2013 is not recommended. These are some of the steps to take
- First update your .net framework to the latest version (version 4.5.2 will do). Version 4.5.1 will work but Microsoft has ended support for it.(Read for more details).
- Create a console application targeting the latest .net framework you just installed.
- Using nuget, download and install the following packages: Microsoft.Aspnetcore.Hosting and Microsoft.aspnetcore.server.kestrel
In this post, I have introduced you to asp.net core, some of its features and the reason why you should switch over to this brand new framework. You should be aware that although the asp.net core is production ready, it has not been fully battle tested and not all the components that you are used and love working with in the good old asp.net is ready yet for asp.net core. But it wouldn't hurt to take it for a spin and see how it feels to work in this new framework.
In the subsequent posts, I will write tutorials about this new framework. Stay tuned.