.NET Core is Microsoft’s new cross-platform Command Language Runtime (CLR). This post is an elementary getting started guide where I create, build and run a “Hello World!” console application with .NET Core.
That will create two files – project.json and Program.cs. Edit Program.cs using your favorite editor.
I recommend using the multi-platform VS Code. You can extend the capabilities of VS Code by downloading extensions from the VisualStudio Marketplace. VS Code should prompt you to download the C# extension when you open Program.cs.
To build the new program from the command line run
To execute the program run
You can also edit, and run or debug the program using VS Code, as shown in this screenshot
Console applications can be very powerful, but .NET CLR can also be used to build Web applications using ASP.NET Core.