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 webApp -o aspnetcoreapp
- cd aspnetcoreapp
Install the HTTPS development certificate:
- dotnet dev-certs https --trust
Run the app:
- dotnet run
Browse to http://localhost:5001:
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.