Introduction

Welcome to the .NET Getting Started guide. This tutorial will walk you through setting up the .NET SDK, creating a simple console application, and running it on your machine.

Prerequisites

  • Operating System: Windows, macOS, or Linux
  • Administrator or sudo privileges for installation
  • Internet connection to download the SDK

Install the .NET SDK

Visit the official download page and select the installer for your OS.

curl -sSL https://dot.net/v1/dotnet-install.sh | bash -s -- --channel LTS

After installation, verify the version:

dotnet --version

Your First Hello World

  1. Create a new console project:
dotnet new console -o HelloWorld
  1. Navigate to the project folder:
cd HelloWorld
  1. Run the application:
dotnet run

You should see Hello, World! printed in the console.

Next Steps

Explore more resources to deepen your .NET knowledge: