ASP.NET Core Tutorial

Table of Contents: IntroductionSetupHello WorldRun the AppNext Steps

Introduction

ASP.NET Core is a cross‑platform, high‑performance framework for building modern web applications. This tutorial walks you through creating a simple web app using the dotnet CLI.

Setup

Make sure you have the .NET SDK installed. You can download it from dotnet.microsoft.com.

Verify the installation:

$ dotnet --version

Hello World

Create a new web project:

$ dotnet new webapp -o MyWebApp
$ cd MyWebApp

The template generates a basic Razor Pages app. Open Pages/Index.cshtml to see the default page.

@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

Hello, world!

Welcome to your new ASP.NET Core app.

Run the App

Start the development server:

$ dotnet run

Open http://localhost:5000 in your browser. You should see the Hello World page.

Next Steps