Let's start by building a simple app.
Install the .NET Core SDK for Windows, macOS, or Linux.
Create a new ASP.NET Core app:
- dotnet new razor -o aspnetcoreapp
- cd aspnetcoreapp
Run the app
- dotnet run
Browse to http://localhost:5000
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>
Refresh the browser to see the change:
Next up, continue building your first ASP.NET Core app with Razor Pages.