loading...

Announcements from .NET Conf: Focus on Blazor

gpeipman profile image Gunnar Peipman Originally published at gunnarpeipman.com on ・3 min read

Microsoft made very interesting announcements at .NET Conf: Focus on Blazor online conference. There are many great things are happening and Blazor is also making a fast progress on finding its way to mobile and desktop. Here’s the short overview of what’s happening and what’s coming next.

Blazor WebAssembly new features for May

Features of Blazor WebAssembly (aka client-side Blazor until now) were announced by Dan Roth:

  • Runs on .NET Core 3.1 and is compatible with .NET Standard 2.1
  • Blazor packages will be versioned as 3.2 because they are not part of .NET Core 3.1 (LTS)
  • WebSockets and SingalR client
  • Support debugging in Visual Studio and browser dev tools
  • Automatic rebuild when something changes
  • Intermediate Language (IL) trimming
  • Brotli compression (already supported by ASP.NET Core)
  • Static web assets integration
  • Authentication options
  • Localization

Experimental Blazor projects

Dan Roth also announced some interesting experimental Blazor projects.

Exploring Blazor Hybrid scenarios is one of major themes for coming .NET 5.

Testing comes to Blazor

There has been some on-going work to get testing to Blazor world. Last year, in the end of August, Steven Sanderson blogged about prototype level test tooling for Blazor: Unit testing Blazor components – a prototype. Here’s the tweet by Claudio Bernasconi showing one Blazor test.

blazor-unit-test-tweet

Based on this early work Egil Hansen built Blazor Components Testing Library.

Default Blazor WebAssembly download size

Steven Sanderson told about progress on Blazor assembly trimming to get smaller download size. Current default Blazor application is around 2MB. Blazor team has target of 1.5MB when Blazor WebAssembly is released at May.

Current and planned default Blazor WebAssembly application size

Assembly trimming is resource expensive and time consuming step. To avoid putting load to developer machines when building and testing applications, assembly trimming is moved to publishing phase. This is something that is not possible with JIT without losses on application loading time.

Videos of conference presentations should be shortly available here: https://channel9.msdn.com/Events/dotnetConf/Focus-on-Blazor

Check out if Carl Franklin’s Blazor Roadshow is happening somewhere near you. Dates in Europe and Canada will posted later. US dudes can make their plans already now. Event is free but be aware – the number of seats may be limited!

The post Announcements from .NET Conf: Focus on Blazor appeared first on Gunnar Peipman - Programming Blog.

Discussion

pic
Editor guide