Create your first app in .NET - Hello World
arrow_back All Posts
March 30, 2026 3 min read .NET/C#

Create your first app in .NET - Hello World

If you're reading this, you've decided to learn C# (pronounced "C-Sharp," not "C-Hashtag"). You are now part of a community that spends 10% of its time writing code and 90% of its time wondering why a single semicolon broke everything. Let's get the basics down so you can start acting like a "Modern Cross-Platform Developer."

1. What is C# Anyway?

Imagine C# is a very polite, very strict secretary. If you tell it exactly what to do using the right forms, it will perform miracles. If you forget to put a period (semicolon) at the end of your sentence, it will go on strike and show you a red squiggle of doom.

  • The Language: C# 13 is the set of words we use.
  • The Engine: .NET 9 is the machine under the hood that makes those words actually do stuff.

2. Choosing Your "Text Editor" (The Fashion Statement)

You need a place to write your code. As Mark J. Price mentions in your textbook, you have three main choices:

  1. Visual Studio 2022: The "Heavy Duty Truck." It has every tool imaginable, including some you'll never use. (Windows only).
  2. VS Code: The "Sports Bike." Lightweight, fast, and works on Mac, Linux, and Windows. If you choose this, make sure to install the C# Dev Kit extension.
  3. JetBrains Rider: The "Fancy Electric Car." It's fast and smart, but it's not free.

Day 1 Tip: Start with VS Code if you want to feel like a hacker, or Visual Studio Community if you want the computer to do more of the work for you.

3. Your First Conversation: "Hello, World!"

In every programming book ever written, the first thing you do is make the computer say "Hello, World!" It's a tradition. It's the law. In modern C#, it looks like this:

Console.WriteLine("Hello, C#!");

What's happening here?

  • Console: This is the "window" where the computer talks back to you.
  • .WriteLine: This is the command telling the computer, "Write this text and then start a new line."
  • ("Hello, C#!"): The stuff inside the quotes is what you want to say.
  • ;: THE MOST IMPORTANT PART. The semicolon is the "period" at the end of the sentence. Forget it, and the secretary goes on strike.

4. The Golden Rules of C# Grammar

To survive Day 1, remember these three things:

  1. C# is Case-Sensitive: console is not the same as Console. The computer is very picky.
  2. Braces are Paragraphs: Use curly braces to group your thoughts together.
  3. Semicolons ; are Breath: Every statement needs to end with a semicolon. It's how the computer knows you're done with that specific instruction.

5. Helpful Resources (Bookmark these!)

When you get stuck (and you will), these are the best places to look:

6. Your Homework (Don't worry, it's fun)

Open your editor, create a new "Console App," and try to make the computer tell you a joke. Example:

Console.WriteLine("Why did the developer go broke?");
Console.WriteLine("Because he used up all his cache!");

Summary of Day 1

  • You learned that C# is the language and .NET is the platform.
  • You realized that semicolons are your best friends (and worst enemies).
  • You made a computer talk.

Tomorrow: we'll talk about Variables — which is basically just giving the computer a "box" to hold your stuff in. Welcome to the club! 🚀

Share
FM

Farhad Mammadov

.NET Engineer & Cloud Architect · Bayern, Germany. Writing about scalable backend systems, AWS, and SRE.