Introduction

This article will cover the following topics:

Brief Concepts:

What is .NET Core?

Features:

.Net Core – Block Diagram:

Implementation (Using Code):
Two ways to develop an application in Windows:

2. Developing applications in Windows:

2.1. Using Command Line - STEPS:

Download demo1 attachment for the reference.

2.2. Using Visual Studio - STEPS:

Download demo2 attachment for the reference.

3. Installing .NET Core on Linux Server (Ubuntu 16.04):

4. Deploy Application (Created on Windows) on Linux Server (Ubuntu 16.04):

5. Develop application on Linux:

6. Develop a MVC application on Windows, using Visual Studio:

app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller}/{action}/{id?}",
defaults: new { controller = "Home", action = "Index" }

public Task Invoke(HttpContext httpContext)
{
httpContext.Response.WriteAsync("Middleware Output");
return _next(httpContext);

    • Use the same Middleware class into the startup file. For e.g. app.UseMiddleware();

    • Run the application for e.g. http://localhost:50938

Download demo3 attachment for the reference.

Point of Interest:

I loved using .NET Core as it allows us to develop applications on any platform. Apart from this, if the application is developed on Windows or Linux, it can be deployed on both of them.

That's an amazing thing offered by Microsoft Smile | :).

Reference Demos:

I have attached three demo files for the demonstration of the explanation shown in the above article.