In your terminal, run the following command:
dotnet watch command will build and start the app, and then update 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:<port number> and for the browser to launch at that address.
Once you get to the following page, you have successfully run your first Blazor app!
The displayed page is defined by the
Home.razor file located inside the
Components/Pages directory. This is what its contents look like:
Welcome to your new app.
It already contains the code that sets it as the homepage and displays the text
Hello, world! and
Welcome to your new app. The
PageTitle component sets the title for the current page so that it shows up in the browser tab.