News

Microsoft Updates Blazor, Now Built on Razor Components

Microsoft shipped Blazor 0.8.0, the latest update to its experimental .NET Web framework that lets programmers use C# and HTML for browser-based apps, a province traditionally dominated by JavaScript.

The new update comes after the dev team separated the client-side and server-side elements of the project, with the latter being renamed ASP.NET Core Razor Components, now part of the .NET Core 3.0 effort.

Razor Components was separated out from the client-side efforts because those ran into some problems, some related to working with the also-experimental WebAssembly project that provides a compilation target for C# and other higher-order programming languages so they can be used for Web development.

At the time, independent Blazor expert Chris Sainty provided more information in a post:

The simple fact is that the client-side model relies not only on WebAssembly but also the efforts of the Mono team and their WASM .NET runtime. While progress is being made extremely quickly it's not quite there yet. AOT is not an option, there is extremely limited debugging, performance needs to be improved, download sizes are too big, etc.

The server-side model gives Microsoft a chance to get Blazor out there to people almost immediately. And as it runs on good old .NET Core it's also got a solid base. It's also important to remember that due to the Blazor architecture, with its separation of app execution from rendering, any developments made will benefit both models. So client-side is not going to get left behind.

Blazor team lead Daniel Roth provided an update on that situation in a post last week announcing Blazor 0.8.0. "As was recently announced, server-side Blazor is now shipping as ASP.NET Core Razor Components in .NET Core 3.0," he said. "We've integrated the Blazor component model into ASP.NET Core 3.0 and renamed it to Razor Components. Blazor 0.8.0 is now built on Razor Components and enables you to host Razor Components in the browser on WebAssembly."

Another new development is that Blazor tooling is now included in the second preview of Visual Studio 2019.

"Previously to get tooling support for Blazor projects you needed to install the Blazor extension for Visual Studio," said Roth. "Starting with Visual Studio 2019 Preview 2, tooling support for Razor Components (and hence Blazor apps) is already included without having to install anything else. The Blazor extension is now only needed to install the Blazor project templates in Visual Studio."

After noting some .NET runtime improvements, known issues and guidance for updating existing projects, Roth reviewed Blazor's present status and future.

"This release of Blazor was primarily focused on first integrating Razor Components into ASP.NET Core 3.0 and then rebuilding Blazor on top of that," Roth said. "Going forward, we plan to ship Blazor updates with each .NET Core 3.0 update.

"Blazor, and support for running Razor Components on WebAssembly in the browser, won't ship with .NET Core 3.0, but we continue to work towards shipping Blazor some later date."

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • Visual Studio Code Dev Team Cleans Up

    The Visual Studio Code development team focused on some housekeeping in the October update, closing more than 4,000 issues on GitHub, where the cross-platform, open-source editor lives.

  • ML.NET Model Builder Update Boosts Image Classification

    Microsoft announced an update to the Model Builder component of its ML.NET machine learning framework, boosting image classification and adding "try your model" functionality for predictions with sample input.

  • How to Do Naive Bayes with Numeric Data Using C#

    Dr. James McCaffrey of Microsoft Research uses a full code sample and screenshots to demonstrate how to create a naive Bayes classification system when the predictor values are numeric, using the C# language without any special code libraries.

  • Vortex

    Open Source 'Infrastructure-as-Code' SDK Adds .NET Core Support for Working with Azure

    Pulumi, known for its "Infrastructure-as-Code" cloud development tooling, has added support for .NET Core, letting .NET-centric developers use C#, F# and VB.NET to create, deploy, and manage Azure infrastructure.

  • .NET Framework Not Forgotten: Repair Tool Updated

    Even though Microsoft's development focus has shifted to the open-source, cross-platform .NET Core initiative -- with the aging, traditional, Windows-only .NET Framework relegated primarily to fixes and maintenance such as quality and reliability improvements -- the latter is still getting some other attention, as exemplified in a repair tool update.

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events