# Your First C# Program

Write and run your first C# program, first as a single file with dotnet run, then as a project in the terminal and in Visual Studio.

![Cheat sheet: Your First C# Program](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/49c04bed8d3f471aa3dfd8c840f917e2.webp)

- Category: C#
- Level: Novice
- Tags: Console.WriteLine(), c-sharp, dotnet CLI, Project File (.csproj), Semicolon (c-sharp), Top-Level Statements
- Updated: November 3, 2026

Source: https://www.ask-codey.com/cheat-sheets/csharp-projects-your-first-csharp-program-cheat-sheet
