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

  • 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