banner ad
We are excited to announce that the ASP.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Get Started with ASP.NET

Below you will find the steps to build your first ASP.NET Core app. See Get Started with ASP.NET if you are looking to get started with ASP.NET and the .NET Framework on Windows. Learn more about the difference between ASP.NET and ASP.NET Core.

Let's start by building a simple app.

  1. 1

    Install the .NET Core SDK for Windows, macOS, or Linux.

  2. 2

    Create a new ASP.NET Core app:

    1. dotnet new webApp -o aspnetcoreapp
    2. cd aspnetcoreapp
  3. 3

    Install the HTTPS development certificate:

    1. dotnet dev-certs https --trust
  4. 4

    Run the app:

    1. dotnet run
  5. 5

    Browse to http://localhost:5001:

  6. 6

    Open Pages/Index.cshtml and add the following to the page above the carousel:

    <h1>Hello, world!</h1>
    <h2>The time on the server is @DateTime.Now</h2>
  7. 7

    Refresh the browser to see the change:

  8. That’s it!

    Next up, continue building your first ASP.NET Core app with Razor Pages.