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 at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube