How to create .NET console program

Once you have dotnet SDK installed, you can create your first program.

To create a console project run

create dotnet console project

This will create MyApp folder with 2 files inside. Program.cs is a basic program that prints “Hello World” text in the console.

dotnet application directory structure

To run the dotnet project, you can use the command

running dotnet application

Back to dotnet

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published.