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,

Advertisement
Advertisements
Advertisements

.Net activity logs Agile Azure bad parts C# C#7.0 C# Tuples CSS Framework CSS Styling Customization designpatterns dotnet dotnet-core event hubs frontend development functions getting-started Hype Cycle JavaScript learn Next.js Node node_modules npm objects vs functions performance optimization React Redux rimraf scalability server-side rendering Software Development SOLID State management static site generation Tailwind CSS Tips Tricks Tuple Tuples Umamaheswaran Visual Studio Web Design web development

Advertisements
Daily writing prompt
What sacrifices have you made in life?

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: