Creating a new ASP.NET 5 project

Issue the following commands to create a new directory where we will create the ASP.NET 5 application. The first command ( mkdir - make directory) is for creating a directory in Linux and the second command ( cd - change directory) is for going inside the folder. And the last command is the command line to create a .NET Core application:

mkdir aspnetcoreapp
cd aspnetcoreapp
dotnet new

The following screen will be displayed:

Creating a new ASP.NET 5 project

This will create the .NET Core application, which has a couple of files—Program.cs and project.json. It's a bare minimum application that does not have even Startup file.

We need to add the ...

Get Learning ASP.NET Core MVC Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.