How to create dotnet console application in 3 steps

Introduction

.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.

Thanks,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s