Skip to main content

Creating a Console Project

A console project is the easiest way to start with C# in .NET.
Here you will learn how to create, run, and modify your first application.


Step 1: Create the project

In your terminal, type:

dotnet new console -n MyFirstProject

This generates:

A Program.cs file with base code. .NET configuration files.

Step 2: Navigate to the project

In your terminal, type:

cd MyFirstProject
dotnet run

Output:

Hello, World!