Blazor Web Assembly Latest release

With the latest release of Blazor Web Assembly 3.2.0 Preview 3.0 they have made great strides in getting the Blazor web assembly version production ready.

The official GA release is for May 2020 and there will be at least 3 more preview release between now and the GA release. 

See the ASP.Net Blog post for the latest instructions on how to install and run the latest preview.

What's in this preview:

1. .Net Standard 2.1
2. Standalone and hosted models
3. IL trimming
4. Web Sockets
5. .Net SignalR Client
6. Static Web assets
7. Authentication and authorization
8. Progress Web Application template
9. Localization and Globalization
10. External Configuration files
11. Debugging
12 Compression

.Net Standard 2.1


You can now use .Net Standard 2.1 Library projects in your Blazor web assembly projects

Standalone and Hosted models


These 2 hosting model s are back.  These were available when the web assembly model was first released but remover be the initial release.  Here is my initial post on hosting


IL Trimming


This is part of the compression work being done to make the initial download of files smaller.

Web Sockets / SignallR Client


This support was added to enable SignalR support in the web assembly model

.Net Static Web Assest


They added the MVC static page support to the web assembly model since in the standalone hosting model is just a static web site.

Authentication and Authorization 


Now with the web assembly template, you can add authentication and authorization to your application.  It works just like the server side Blazor application.

It will support Authorized Views, roles and the other security features.  In this preview it only supports "User Individual Accounts".  With a command line template you can create an application you can support Active Directory security as well.

With the GA release the rest of the .net core security models will be supported.   Here is my post about server side authentication and authorization


Progressive Web Applications

This is really cool.  Now there is a new template that will allow you to create a PWA project.  It works just like creating a standard Web Assembly project.

I will be creating a much deeper blog post on creating a PWA.


Localization and Globalization

This is another pretty cool feature that was added.  Globalization is the formatting and parsing of dates and currencies.  With this feature,  the web assembly application will automatically use the browsers setting.  

Localization is the translation of display strings into another language.  It does this using the standard .net core localization.  You defined the strings in standard resource files and in the start class you set the location of the setup files.


External Configuration files


Now with the web assembly application you can use external configuration files and have multiple configuration files such as dev, stage and production.  This brings the web assembly application on par with the other .net core applications.


Debugging


This is on par with the PWA template as the coolist feature added.  You can now debug right in Visual Studio or VS Code.  You no longer have to use the browser to debug.  You can use Visual Studio to set break points and inspect variable values.  This is the first phase of added debugging to the web assembly.  The team still has more debugging features to add but this is a great step forward.

Compression

They are continuing to decrease the downloadable size of the files.  They have it at about 1.8 M.  Their goal is to reach 1.5M by GA.


Piggy back on ASP.Net Blog and the Asp.Net Community Stand-up

Comments

Popular posts from this blog

Yes, Blazor Server can scale!

Blazor - Cool Blur Loading Page

Blazor new and improved Search Box