Ad

Search This Blog

Monday, January 2, 2023

Blazor Server - Run your app

 Click on the Start Debugging button (green arrow) in the Debug Toolbar in Visual Studio to run your app.

Once the app is running, you can apply code changes to the running app by clicking the Hot Reload button.

You can stop the app at any time by clicking on the 
Stop button in the top toolbar.

The first time you run a web app in Visual Studio, it will set up a development certificate for hosting the app over HTTPS and then prompt you to trust the certificate. We recommend agreeing to trust the certificate. The certificate will only be used for local development, and without it most browsers will complain about the security of the website.

Wait for the app to launch in the browser. Once you get to the following page, you have successfully run your first Blazor app!


The displayed page is defined by the Index.razor file located inside the Pages directory. This is what its contents look like:

Source collected from https://dotnet.microsoft.com/en-us/learn/aspnet/blazor-tutorial/run

No comments:

Post a Comment