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

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube