Creating Your First Blazor App
Creating a Blazor Server Application To start, we will create a Blazor Server application: Start Visual Studio 2019. Press Create a new project, and in the search bar, type blazor . Select Blazor App from the search results and press Next. Now name the project. Name the application MyBlogServerSide , change the solution name to MyBlog , and press Create. Next, choose what kind of Blazor app we should create. Select .NET 5.0 (Current) from the drop-down menu and press Create. Now run the app by pressing Ctrl + F5 (we can also find it under the Debug | Start without debugging). Your first Blazor Server application is ready. Explore the site a bit, navigate to Counter and Fetch data to get a feeling for the load times, and see what the sample application does. This project is based on Blazor Server, which implies that each interaction (such as clicking a button) sends a command through SignalR to the server. The server will then re-render the component and transmit the updates ...