News

ASP.NET Core Starts Path to Hot Reload, AoT Compilation, Blazor Desktop, More

The first preview of .NET 6 arrived with grand plans for ASP.NET Core -- the web-dev component -- including much-requested features like hot reload, ahead-of-time (AoT) compilation and the beginnings of Blazor hybrid desktop projects.

Developers need to wait a while for all those goodies, though, as EF Core 6 will debut with parent framework .NET 6 in November as part of long-term release (LTS) that combines formerly separate components into one unifying umbrella platform, and Preview 1 only sports minor features such as:

  • Support for IAsyncDisposable in MVC
  • DynamicComponent
  • Input ElementReference exposed on relevant components
  • dotnet watch now does dotnet watch run by default
  • Nullable reference type annotations

The list of those aforementioned goodies, however, was presented as a raft of GitHub issues:

One of the planned features, Blazor hybrid desktop apps, has garnered much interest among developers interested in Blazor, a WebAssembly-based (in the client) scheme that allows for web development with C# instead of JavaScript. Because the default web renderer for Blazor can be swapped out for other targets, Blazor has been tasked for mobile development with the experimental Mobile Blazor Bindings project, and that in turn has led to the fledgling Blazor desktop effort.

That effort stems from an Oct. 26, 2020, issue summarized like this: "In .NET 6 we want to extend Blazor's target scenarios to include native desktop applications via web-based rendering."

Blazor Desktop User Stories
[Click on image for larger view.] Blazor Desktop User Stories (source: Microsoft).

One developer quick to jump on the Blazor desktop bandwagon was Sam Basu, Progress Developer Advocate for Telerik products, who penned a blog post about it yesterday, when .NET 6 Preview 1 was announced.

He pointed out two ways to create Blazor desktop apps: wrapped in an Electron shell or by extending Blazor Mobile Bindings, which is based on Xamarin.Forms, Microsoft's mobile development framework that is in the process of evolving into .NET MAUI.

The first method, using Electron, requires the bundling of the Chromium engine and the Node.js runtime, making for a hefty package.

Blazor guru Steve Sanderson, though, examined ways to lessen the load way back in 2019, while presenting the WebView method.

"It does beg the question as to whether lighter web shells could do the job of hosting modern Blazor apps with a level of consistency," Basu said of Sanderson's post. "Time will tell, but thankfully there are some alternatives to play around with."

ASP.NET Core Roadmap
[Click on image for larger view.] ASP.NET Core Roadmap (source: Microsoft).

Developers can track the development of those alternatives and ASP.NET Core itself by peeking into Microsoft's open planning process for .NET 6 via GitHub issues presented in the Themes of .NET site -- where development efforts are tracked -- and the ASP.NET Core 6 Roadmap. (Ironically, the Blazor-powered Themes of .NET site is down as this is being written, perhaps not a good look for Microsoft.)

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • GitHub Previews Agentic AI in VS Code Copilot

    GitHub announced a raft of improvements to its Copilot AI in the Visual Studio Code editor, including a new "agent mode" in preview that lets developers use the AI technology to write code faster and more accurately.

  • Copilot Engineering in the Cloud with Azure and GitHub

    Who better to lead a full-day deep dive into this tech than two experts from GitHub, which introduced the original "AI pair programmer" and spawned the ubiquitous Copilot moniker?

  • Uno Platform Wants Microsoft to Improve .NET WebAssembly in Two Ways

    Uno Platform, a third-party dev tooling specialist that caters to .NET developers, published a report on the state of WebAssembly, addressing some shortcomings in the .NET implementation it would like to see Microsoft address.

  • Random Neighborhoods Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the random neighborhoods regression technique, where the goal is to predict a single numeric value. Compared to other ML regression techniques, advantages are that it can handle both large and small datasets, and the results are highly interpretable.

  • As Some Orgs Restrict DeepSeek AI Usage, Microsoft Offers Models and Dev Guidance

    While some organizations are restricting employee usage of the new open source DeepSeek AI from a Chinese company due to data collection concerns, Microsoft has taken a different approach.

Subscribe on YouTube

Upcoming Training Events