MSDN .NET Documentation

Your Gateway to .NET Development

Welcome to .NET

Explore the comprehensive guide to .NET, Microsoft's powerful, versatile, and open-source development platform for building any application, for any developer, on any platform.

Your First Steps with .NET

This guide will help you set up your development environment and build your first .NET application. We'll cover installation, essential tools, and a simple "Hello, World!" project.

1. Installation

The first step is to install the .NET SDK (Software Development Kit). The SDK includes the runtime and libraries you need to develop and run .NET applications.

2. Verify Installation

After installation, you can verify it by opening a terminal or command prompt and running the following command:

dotnet --version

This should display the installed .NET SDK version.

3. Create Your First Application

Let's create a simple console application. Open your terminal or command prompt, navigate to a directory where you want to create your project, and run these commands:

dotnet new console -o MyFirstApp
cd MyFirstApp

This creates a new console application named "MyFirstApp" in a new directory and then navigates into that directory.

4. Write Your Code

Open the Program.cs file in your favorite text editor or IDE. You'll find some starter code:

// Program.cs
Console.WriteLine("Hello, World!");

The Console.WriteLine method is used to print text to the console.

5. Run Your Application

In your terminal, inside the MyFirstApp directory, run the following command:

dotnet run

You should see the output:

Hello, World!

Congratulations! You've just built and run your first .NET application.

Key Concepts to Explore Next

🚀

Understanding C#

.NET is primarily developed using C#. Learn the fundamentals of this powerful object-oriented language.

Learn C#
💻

Choosing Your Project Type

.NET supports a wide range of applications, from web apps and APIs to desktop, mobile, and cloud services.

Explore Project Types
🔧

Development Tools

Discover the power of Visual Studio and Visual Studio Code for an enhanced development experience.

Tools Overview

Ready to Dive Deeper?

This is just the beginning of your .NET journey. Explore our extensive documentation, tutorials, and samples to become a proficient .NET developer.

If you encounter any issues or have questions, our vibrant community is here to help!

Explore Tutorials Join the Community