.NET Tutorial – First App

Introduction

Welcome to the first .NET tutorial! In this guide, you'll create a simple console application that prints Hello, World! to the screen.

Prerequisites

1. Create the Project

Open a terminal and run:

dotnet new console -n FirstApp

This creates a folder named FirstApp containing a basic console template.

2. Write the Code

Navigate into the folder and open Program.cs:

using System;

Console.WriteLine("Hello, World!");

3. Run the Application

Execute the program:

dotnet run

You should see:

Hello, World!

Next Steps