Try Microsoft Edge
A fast and secure browser that's designed for Windows 10
Get started
To start creating .NET apps you just need to download the .NET Core SDK for Windows.
Download .NET Core SDKThis installer will install the latest stable version of the tools and put them on your PATH so you can run dotnet from the Console.
Video: Creating a Simple .NET Application on Windows
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
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, try our in-browser tutorial.
In order to install .NET from Red Hat on RHEL, you first need to enable the .NET channel which is available under your RHEL 7 subscription. You also need to ensure that your system supports enabling software collections via the scl tool.
For help on registering your machine to get access to the channel see the Chapter 1 of the .NET Core 2.0 Getting Started Guide at Red Hat.
Now you can install the .NET Core SDK and then enable the .NET software collection.
For additional help and guidance on installing and enabling .NET on RHEL, see the .NET Core Getting Started Guide at Red Hat.
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio Code is a cross platform code editor, with support for .NET.
You'll also need the C# extension for Visual Studio Code.
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
Before installing .NET Core, you need to register the Microsoft Product feed. This only needs to be done once. First, register the Microsoft signature key, then add the Microsoft Product feed.
Please remove any previous preview versions of .NET Core from your system before going to the next step.
The following commands update the list of products available for installation, installs components required by .NET Core, then installs the .NET Core SDK.
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio Code is a cross platform code editor, with support for .NET.
You'll also need the C# extension for Visual Studio Code.
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
Before installing .NET Core, you need to install a few system components and register the Microsoft Product feed. This only needs to be done once.
Please remove any previous preview versions of .NET Core from your system before going to the next step.
The following commands update the list of products available for installation, then installs the .NET Core SDK.
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio Code is a cross platform code editor, with support for .NET.
You'll also need the C# extension for Visual Studio Code.
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
Before installing .NET Core, you need to register the Microsoft Product feed. This only needs to be done once. First, register the Microsoft signature key, then add the Microsoft Product feed.
Please remove any previous preview versions of .NET Core from your system before going to the next step.
The following commands update the list of products available for installation, installs components required by .NET Core, then installs the .NET Core SDK.
Fedora 26 or later versions:
Other versions:
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio Code is a cross platform code editor, with support for .NET.
You'll also need the C# extension for Visual Studio Code.
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
Before installing .NET Core, you need to register the Microsoft Product feed. This only needs to be done once. First, register the Microsoft signature key, then add the Microsoft Product feed.
Please remove any previous preview versions of .NET Core from your system before going to the next step.
The following commands update the list of products available for installation, installs components required by .NET Core, then installs the .NET Core SDK.
Note: When installing the SDK, SUSE and OpenSUSE may report that nothing provides libcurl. libcurl should already be installed on supported versions of both distros. Run zypper search libcurl to confirm. The error will present 2 'solutions'. Choose 'Solution 2' to continue installing .NET Core.
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio Code is a cross platform code editor, with support for .NET.
You'll also need the C# extension for Visual Studio Code.
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
Before installing .NET Core, you need to register the Microsoft Product feed. This only needs to be done once. First, register the Microsoft signature key, then add the Microsoft Product feed.
Video: Creating a Simple .NET Application on Linux Ubuntu
Please remove any previous preview versions of .NET Core from your system before going to the next step.
The following commands update the list of products available for installation, installs components required by .NET Core, then installs the .NET Core SDK.
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio Code is a cross platform code editor, with support for .NET.
You'll also need the C# extension for Visual Studio Code.
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
The best way to install .NET on macOS is to download the official installer.
Download .NET Core SDKThis installer will install the latest stable version of the tools and put them on your PATH so you can run dotnet from the Console.
Note: if you have any problems with installation on macOS, please consult our release notes.
Video: Creating a Simple .NET Application on Mac
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Visual Studio for Mac is a fully-featured integrated development environment (IDE) for developing .NET apps on macOS.
Download Visual Studio for Mac
There are also third party tools for developing .NET apps. JetBrains Rider is a cross-platform .NET IDE built using IntelliJ and ReSharper technology.
The following command will get you a running container with the toolchain, straight off of Microsoft's Docker Hub.
dotnet new creates a new application, console is the type of application to create, and -o hwapp sets an output directory of hwapp (short for Hello World app). cd hwapp moves into the newly created app directory.
The template for console applications created a Program.cs file, with code to write "Hello World" to the console.
using System;
namespace hwapp
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
Finally, dotnet run will run your app.
You've built and run your first .NET app.
Learn more about building .NET apps with Docker.
Please take a few seconds to help us improve your experience.
Take Survey