.NET Core - Getting Started

Visual Studio 2015 provides a full-featured development environment for developing .NET Core applications. In this chapter, we will be creating a new project inside Visual Studio. Once you have installed the Visual Studio 2015 tooling, you can start building a new .NET Core Application.

Core Application

In the New Project dialog box, in the Templates list, expand the Visual C# node and select .NET Core and you should see the following three new project templates

  • Class Library (.NET Core)
  • Console Application (.NET Core)
  • ASP.NET Core Web Application (.NET Core)

In the middle pane on the New Project dialog box, select Console Application (.NET Core) and name it "FirstApp", then click OK.

First App

Visual Studio will open the newly created project, and you will see in the Solution Explorer window all of the files that are in this project.

To test that .NET core console application is working, let us add the following line.

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Threading.Tasks; 
  
namespace FirstApp { 
   public class Program { 
      public static void Main(string[] args) { 
         Console.WriteLine("Hello guys, welcome to .NET Core world!"); 
      } 
   } 
}

Now, run the application. You should see the following output.

Output