ASP.NET Tutorial - Hello World in 10 minutes

Run your app

In your command prompt, run the following command:

In your terminal, run the following command:

Terminal
dotnet watch run

The dotnet watch run command will build and start the app, and then rebuild and restart the app whenever you make code changes. You can stop the app at any time by selecting Ctrl+C.

Wait for the app to display that it's listening on http://localhost:5000 and for the browser to launch at that address.

Wait for the app to display that it's listening on http://localhost:5000 and then open a browser and navigate to that address.

The home page of your site contains some placeholder content about ASP.NET.

Congratulations, you've built and run your first .NET web app!

Continue