This article is a step by step guideline to write your very first basic Hello World! .NET Core app using Visual Studio 2017.
Step 1. Download and Install Visual Studio 2017.
Download and install Visual Studio 2017 from the following URL. The current version of Visual Studio 2017 is RC.
Download website: https://www.visualstudio.com/
Step 2. Download and Install .NET Core
Google “download .net core” and you will see the first link www.microsoft.com/net/core .
Download and install .NET Core. Please keep in mind, this URL may change in future.
Step 3. Create a project
Open Visual Studio 2017 and create a new project by selecting New > Project. You will see .NET Core in the left side of templates and in the right side, you will see various .NET Core templates as listed in the following image.
Select the Console App (.NET Core), give your project a name, select a correct folder, and click OK. This will create your first, Hello World! .NET Core project.
The default program has a Program.cs file that has code that is listed in the following code snippet. Keep in mind, the Console.ReadKey(); is the code I added after the file was already created.
static void Main(string args)
[/code] Step 3. Build and run
Build and run your project by hitting F5 or Fn+F5.
The output looks like the following figure.
Congratulations! You just built and ran your very first .NET Core.