How to create dotnet console application in 3 steps


.NET core is a Cross Platform Microsoft Open Source framework which supports variety of platforms including Ubuntu, Debian, Fedora, CentOS, RHEL, MAC and of course Windows.

You can use either Visual Studio Community or Visual Code. Both are completely free to use.

Install .Net Core SDK

Download .Net Core SDK based on the platform that you are working on and install it.

Create App

Go to the terminal and create a new directory and run following command

dotnet new

Run App

To run the app you need to restore the packages using the below command and run the next command to see the output of the hello world program

dotnet restore

dotnet run

if you are looking for more samples you can visit the dotnet github page.