Paul Krill
Editor at Large

ASP.NET Core gets full-stack web programming in .NET 8

news
Feb 24, 20232 mins

Blazor United combines server-side and client-side rendering in a full-stack web programming model in ASP.NET Core 8, now available in a first preview.

basics / building a foundation / how-to / process / steps / stacking blocks

ASP.NET Core, Microsoft’s cross-platform framework for web and mobile apps, will offer a combined, full-stack web programming model as part of the planned .NET 8 software development platform, to better satisfy the diverse needs of web apps.

Now available in a first preview, .NET 8 endeavors to combine benefits of server-side and client-side rendering into a single, full-stack programming model based on the Blazor framework for client-side web UIs, featured as part of ASP.NET Core. This effort is being called Blazor United, Microsoft said in a blog post published on February 21.

Many apps need a combination of server-side and client-side approaches, Microsoft’s Daniel Roth, principal program manager for ASP.NET, said. A home page or blog is best handled with server-side rendering for fast loading and indexing, while more elaborate functionality of an app needs client-side responsiveness. Thus far, .NET has required using multiple frameworks together—MVC, Razor, and Blazor Pages—to achieve this.

With .NET 8, developers will be able to use a single, Blazor-based architecture for server-side rendering and client-side interactivity with Blazor Server or WebAssembly. Developers will be able to switch between different rendering modes and mix them in the same page. Blazor United will enable new rendering capabilities such as streaming rendering and progressive enhancement of form posts and navigations.

Also in .NET 8, an improved authentication and authorization experience is eyed for ASP.NET Core. Microsoft with ASP.NET Core hopes to create an intuitive experience for web-based authentication and provide steps and tools to support deployment to production environments. Diagnostics to quickly troubleshoot security issues also are planned.

To begin using ASP.NET Core in .NET 8 Preview 1, developers must install the .NET SDK. The next version of .NET will also extend Native AOT, for producing an app that is self-contained and ahead-of-time compiled, to ASP.NET Core. This will first be done with cloud-focused, API apps built with minimal APIs that meet expectations regarding published file size, working set, throughput performance, and startup time.

ASP.NET Core in .NET 8 Preview 1 also includes routing tools, route constraint performance improvements, hot reload support for instance fields, properties, and events for .NET on WebAssembly, and experimental Blazor WebAssembly debugging in Firefox. And HTTP/3 is enabled by default.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author