Step By Step Installation Of .NET Core 2.0

In my previous post, I have explained how to set up for .NET Core 2.0 which you can find here.

But that post mainly focuses on how to do the setup if you already have .NET Core. So, in this post, I will explain how to install .NET Core 2.0 (without having Core 1.0) on your machine.

First of all, you need to install .NET Core 2.0 SDK from here.

Once you double click on the exe, it will start the process as below.

core21

Once the process is done, it will show the following window.

core22

Open Visual Studio command prompt as below and run the command -

dotnet new console -o console-app

core23

It shows that .NET Core 2.0 has been installed on your machine. For more information, you can go through the documents by clicking on the links shown in the console.

Now, we will run a console application from the command prompt.

One sample application is already provided which resides on the below path (It may change).

C:\Windows\System32\console-app

Now, run the command -

dotnet run

core25

This will return “Hello World”; it shows your installation is successful.

You can even run the below command to verify the version.

dotnet –version

It should return 2.0

You can open this sample project in Visual Studio 2017.

To create a new Core 2.0 project, you need to select the version in the drop-down, as shown below.

core27

Up Next
    Ebook Download
    View all
    Learn
    View all