Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
Get started
To start building .NET apps you just need to download and install the .NET SDK (Software Development Kit) for Windows.
Video: Creating a Simple .NET Application on Windows
Open a new command prompt and run the following commands.
dotnet new console -o myApp
cd myApp
The dotnet command will create a new application of type console for you. The -o parameter will create a directory named myApp where your app will be stored, and populates it with the required files. The cd myApp command puts you into the newly created app directory.
The main file in the myApp folder is Program.cs. By default, it already contains the necessary code to write "Hello World!" to the Console.
using System;
namespace myApp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
In your command prompt, run the following command:
dotnet run
Congratulations, you've built and run your first .NET app!
Visual Studio is a fully-featured integrated development environment (IDE) for developing .NET apps on Windows.
Select the .NET Core cross-platform development workload during installation:
While you wait for Visual Studio to install, you can keep learning with the .NET Quick Starts. In the first Quick Start you'll learn about collections.
Once Visual Studio is installed, come back and build your first .NET app using Visual Studio.