Introduction to .NET Core

Till now website/application developed using .net framework can be hosted only on windows platform. So, your application is bounded with windows OS. What if someone wants to deploy .net framework based application on Linux or Mac, earlier there was no solution but now it can be achieved using.NET Core.
So let's start by introducing.NET Core.


What is .NET Core?

The asp.net core is a new open source framework introduced by Microsoft. 
ASP.Net Core is a cross platform open source framework for building modern applications including cloud-based development.

ASP.Net Core is designed to support client side frameworks like KnockoutJS, Angular JS and Bootstrap.

ASP.Net core has various architectural changes which make it a great framework for a developer. You can say it's a new version of .net.

Why .Net Core

  • It is a framework to build web applications
  • It is open source
  • Deploy .Net core application to on-premises or to the cloud.
  • Build and run application on Windows, MAC and Linux
  • A cloud ready environment
  • Ability to host in IIS or self host


ASP.Net core apps can run on cross-platform such as Windows, Mac, Linux.

So how can someone choose between .Net core and ASP.Net Framework.

Go for .Net core, if :
  • You are developing a cross-platform application.
  • You are looking for a high performance and scalable system.
Go for ASP.Net framework, if:
  • You are working on an environment that does not support .NET core.
  • NuGet packages not available for .NET Core.

.Net Core Tools

  • Visual studio 2015/2017 
  • Command Line Interface

How to start development with .Net Core

If you are using VS 2017 you will get .Net Core in installed template.
And if you are using VS 2015 then you need Update 3 of VS 2015.
Follow below steps to update Visual Studio 2015 to start development with ASP.Net Core 1.0.1. 
Open Visual Studio 2015. Tools ->Extensions and Update
You will see “Microsoft ASP.NET and Web Tools”, click on Update.

what is .net core


You will see Microsoft .NET Core 1.0.1 installer.

.net core

Install this tool.
Once installation was done, Open VS 2015
Go and create a new project, and you will see .NET Core in the template.

See below screen for more details.
You can notice the message in right side saying –
“Project templates for creating ASP.NET Core applications for Windows, Linux and OS X using .NET Core.”

.net core



Create a Web Application, and you will see below welcome page.

introduction to .net core


ASP.Net Core Project layout

.net core 1.0


Enjoy development using .NET Core.

Comments

Popular

C# 6.0 New Features

SharePoint Interview Questions and Answers

Calling ASP.Net WebMethod using jQuery AJAX

What is Cloud Computing - A guide for beginners