Blazor app have five different editions and two are now available in the Visual Studio and three editions are in a planing stage.
- Blazor WebAssembly
- Blazor Server
- Blazor Progressive Web Apps (PWAs)
- Blazor Hybrid
- Blazor Native
The following are the currently available Blazor apps.
As per the Microsoft information “Blazor WebAssembly” is still in preview and expect to live by may 2020. So it is clear that Blazor WebAssembly is not ready for the production use and currently in a development stage. If you’re looking for a production solution, then you can choose “Blazor Server” and it is recommended by Microsoft.
As daniel mentioned in the document “We have expect to have official previews of support for Blazor PWAs and Blazor Hybrid apps using Electron in the .NET 5 time frame (Nov 2020). There isn’t a road map for Blazor Native support yet. The following are the Blazor App planning editions”.
Blazor PWAs ( Progressive Web Apps )
Blazor PWAs ( Progressive Web Apps ) are web apps that support the latest web standards to provide a more native-like experience. It will work offline and online scenarios and support push notifications, OS integrations, etc.
Native .Net readers to Electron and Blazor Hybrid apps don’t run on WebAssembly but instead uses a native .NET runtime like .NET Core or Xamarin. It will work offline or online scenarios.
Same programming model but rendering non-HTML UI.
Note : The application is tested in .NET Core 3.1 SDK & Visual Studio 2019 16.4 version and all the steps depend on the respective versions.
- Install Visual Studio 2019 16.4 or later with the ASP.NET and web development workload.
- Install the .NET Core 3.1 SDK.
1. Create a new project in Visual Studio 2019 ( version 16.4 ) and It lists the available project templates. So we have to choose “Blazor App” template for development.
2. Configure new project name, solution name and location in our system.
3. Based on the selected Blazor template ( Step 1 ) It will display the two available Blazor app in Visual Studio. So we have selected “Blazor Server App” from the list.
We can run the application and see the first output of our Blazor Server App.
From this article we have learned the basics of microsoft Blazor Apps With Visual Studio 2019. I hope this article is useful for all the Blazor ASP.NET Core beginners.