Install the .NET SDK in C#

From the C# Programming Language cheat sheet ยท Setup ยท verified Jul 2026

Install the .NET SDK

Install .NET 10, verify the SDK, and run a console application.

bash
# Windows
winget install Microsoft.DotNet.SDK.10

# Ubuntu
sudo apt update
sudo apt install dotnet-sdk-10.0
๐Ÿ“Œ Install the SDK, not only the runtime, to build C# projects
๐Ÿ’ก The SDK includes the matching .NET runtimes
๐Ÿ” dotnet --list-sdks shows every installed SDK
๐ŸŽฏ Use the latest .NET 10 SDK for C# 14 projects
installdotnetsdkconsole

Continue with C# Programming Language

Save the full cheat sheet or work through every related task.

Back to the full C# Programming Language cheat sheet