Blog

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.

Download.NET Core
Free .NET command-line tools for Windows, Mac, and Linux

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 razor -o aspnetcoreapp
    2. cd aspnetcoreapp
  3. 3

    Run the app

    1. dotnet run
  4. 4

    Browse to http://localhost:5000

  5. 5

    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>
    
  6. 6

    Refresh the browser to see the change:

  7. That’s it!

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