Blazor Tutorial
Create Blazor Application
Blazor is an experimental .NET web framework using C#/Razor and HTML that runs in the browser with WebAssembly. Blazor provides all of the benefits of a client-side web UI framework using .NET on the client and optionally on the server.
Once the environment is set up, you can create the Blazor application from File > New menu and choose Project... menu item.
In the New Project dialog, select Web in the left pane and then choose ASP.NET Core Web Application in the middle pane. Specify the project name in the Name field and click OK.
On the New ASP.NET Core Web Application dialog, choose the Blazor template and select OK. Once the project is created, build and run the application.
- The Blazor application runs in the browser, and it has three pages: Home, Counter, and Fetch data.
- These pages are implemented by the three Razor files in the Pages folder.
- Each of these files implements a Blazor component that is compiled and executed on the client-side in the browser.