How to use asp netcore 2 0 0 on visual studio 2019


ASP.NET is a popular programming language used for building web applications. In this article, we will explore how to use ASP.NET Core 2.0.0 on Visual Studio 2019.

Setting up ASP.NET Core 2.0.0

To start using ASP.NET Core 2.0.0, you need to have Visual Studio 2019 installed on your . If you don't have it, you can download and it from the official Microsoft .

Once you have Visual Studio 2019 installed, follow these steps to set up ASP.NET Core 2.0.0:

  1. Create a new project in Visual Studio 2019 by selecting “File” > “New” > “Project”.
  2. In the project selection window, choose “ASP.NET Core Web ”.
  3. Give your project a name and select a location to save it.
  4. Choose the ASP.NET Core 2.0.0 template from the available options.
  5. Click “Create” to create the project.

Writing ASP.NET Core 2.0.0 Code

Once you have set up your project, you can start writing ASP.NET Core 2.0.0 code. ASP.NET Core uses the C# programming language, so you will be writing C# code to your web application.

Here is an example of a ASP.NET Core 2.0.0 code snippet:

using System;

namespace MyWebApplication
    public class Program
        public static void Main([] args)
            .WriteLine("Hello, ASP.NET Core 2.0.0!");

In the above example, we have a simple console application that prints “Hello, ASP.NET Core 2.0.0!” to the console. This is just a basic example to demonstrate the syntax of ASP.NET Core 2.0.0 code.

Running ASP.NET Core 2.0.0 Code

To run your ASP.NET Core 2.0.0 code, you can use the built-in debugging features of Visual Studio 2019. Simply click on the “Start Debugging” button or press F5 to run your application.

Once your application is running, you can access it through a web browser by entering the appropriate URL. By default, ASP.NET Core 2.0.0 applications run on localhost on a port.


In this article, we have explored how to use ASP.NET Core 2.0.0 on Visual Studio 2019. We have seen how to set up a project, write code, and run the application. ASP.NET Core 2.0.0 is a powerful framework for building web applications, and Visual Studio 2019 provides a convenient development environment for working with it.

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents