Get started with .NET Core
This article provides information on getting started with .NET Core. .NET Core can be installed on Windows, Linux, and macOS. You can code in your favorite text editor and produce cross-platform libraries and applications.
If you're unsure what .NET Core is, or how it relates to other .NET technologies, start with the What is .NET overview. Put simply, .NET Core is an open-source, cross-platform implementation of .NET.
Create an application
First, download and install the .NET Core SDK on your computer.
Next, open a terminal such as PowerShell, Command Prompt, or bash. Type the following
dotnet commands to create and run a C# application:
dotnet new console --output sample1 dotnet run --project sample1
You should see the following output:
Congratulations! You've created a simple .NET Core application. You can also use Visual Studio Code, Visual Studio (Windows only), or Visual Studio for Mac (macOS only), to create a .NET Core application.
You can get started developing .NET Core applications by following these step-by-step tutorials.
- Build a C# "Hello World" Application with .NET Core in Visual Studio 2017.
- Build a C# class library with .NET Core in Visual Studio 2017.
- Build a Visual Basic "Hello World" application with .NET Core in Visual Studio 2017.
- Build a class library with Visual Basic and .NET Core in Visual Studio 2017.
- Watch a video on how to install and use Visual Studio Code and .NET Core.
- Watch a video on how to install and use Visual Studio 2017 and .NET Core.
- Getting started with .NET Core using the command-line.
See the .NET Core dependencies and requirements article for a list of the supported Windows versions.