.NET Tutorial - Hello World in 10 minutes

Download and install

To start building .NET apps, download and install the .NET SDK (Software Development Kit).

You need to install additional dependencies on older versions of Windows. See Windows 7 / Vista / 8.1 / Server 2008 R2 / Server 2012 R2 for more information.

Check everything installed correctly

Once you've installed, open a new command prompt and run the following command:

Once you've installed, open a new terminal and run the following command:

Terminal
dotnet

If the installation succeeded, you should see an output similar to the following:

Command prompt
Usage: dotnet [options]
Usage: dotnet [path-to-application]

Options:
-h|--help         Display help.
--info            Display .NET information.
--list-sdks       Display the installed SDKs.
--list-runtimes   Display the installed runtimes.

path-to-application:
The path to an application .dll file to execute.

Got an error?

If you receive a 'dotnet' is not recognized as an internal or external command error, make sure you opened a new command prompt. If you can't resolve the issue, use the I ran into an issue button to get help fixing the problem.

Continue