ASP.NET CoreMicrosoft’s cross-platform framework for web and mobile applications, will offer a combined and comprehensive web programming model under the project .NET 8 Software Development Platformto better meet the various needs of web applications.
Now available in a first preview, .NET 8 strives to combine the advantages of server-side and client-side rendering into a single, full-stack programming model based on the Blazor frame for client-side web UIs, presented as part of ASP.NET Core. This effort is called Blazor United, Microsoft said in a blog post published on February 21.
Many applications require a combination of server-side and client-side approaches, said Daniel Roth of Microsoft, senior program manager for ASP.NET. A homepage or blog is best handled with server-side rendering for fast loading and indexing, while more elaborate application functionality requires client-side responsiveness. Until now, .NET has required the simultaneous use of multiple frameworks (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 continuous rendering And progressive improvement of form messages and navigations.
Also in .NET 8, an improved authentication and authorization experience is planned 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 in production environments. Diagnostics to quickly resolve security issues are also provided.
To start using ASP.NET Core in .NET 8 Preview 1, developers need to install the .NET SDKs. The next version of .NET will also extend Native AOT, to produce a self-contained, pre-compiled application, to ASP.NET Core. This will be done first with cloud-focused API applications built with minimal APIs that meet expectations for published file size, working set, throughput performance, and startup time .
ASP.NET Core in .NET 8 Preview 1 also includes routing tools, routing constraints performance improvements, support for hot reloading instance fields, properties and events for .NET on WebAssembly , and experimental debugging of Blazor WebAssembly in Firefox. And HTTP/3 is enabled by default.
Copyright © 2023 IDG Communications, Inc.