ASP.NET Core 10 Preview Released
Written by Kay Ewbank   
Monday, 31 March 2025

Microsoft has announced the second preview release of .NET 10 with enhancements across the .NET Runtime, SDK, libraries, C#, ASP.NET Core, Blazor, and .NET MAUI. 

ASP.NET Core has a number of improvements, including better behavior in Blazor navigation, and new authentication and authorization metrics. .NET was created from a combination of .NET Framework and .NET Core. 

net2

Blazor's Web App project template now includes a ReconnectModal component that includes collocated stylesheet and JavaScript files. The team says this provides improved developer control over the reconnection UI when the client loses the WebSocket connection to the server. The component doesn't insert styles programmatically, ensuring compliance with stricter Content Security Policy (CSP) settings for the style-src policy. 

The new reconnection UI features mean that code can better differentiate the stages of the reconnection process with the new reconnection state "retrying," indicated by both the CSS class and the new event. In earlier versions, if you used NavigateTo to navigate to the same page in a Blazor app with an interactive router, the browser would scroll to the top of the page. This behavior has been changed in .NET 10 so that the browser will no longer scroll to the top of the page when navigating to the same page. 

Another improvement means the NavLink component will now ignore the query string and fragment when using the NavLinkMatch.All value for the Match parameter. This means that the link will still have the active class if the URL path matches but the query string or fragment change.

Blazor also now has a QuickGrid RowClass parameter that can be used to apply a stylesheet class to a row of the grid based on the row item, and Blazor scripts are now treated as a static web asset with automatic compression and fingerprinting. 

The developers have added metrics for a number of authentication and authorization events in ASP.NET Core, including Authenticated request duration, Challenge count,Forbid count, Sign in count and Sign out count for authentication, and a count of requests requiring authorization. 

Other improvements include the addition of built-in support for propagating XML source code comments into OpenAPI documents.  The OpenAPI.NET library used in ASP.NET Core OpenAPI document generation has been upgraded to v2.0.0-preview7. This version includes a number of bug fixes and improvements. 

.NET 10 Preview 2 is available for download now.

net2

More Information

.NET 10 Preview 2 Release Notes

Related Articles

.NET 8 Preview 3 Improves ASP.NET Core

.NET 8 Preview 1 Announced

.NET 7 Release Candidate Announced

.NET 8 Final Preview Improves ASP.NET Core

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Microsoft Adds Usage Report To Graph
01/05/2025

Microsoft has announced a new Graph API usage report in a beta API version in Microsoft Graph.



Linux Foundation Mentorship Program
15/04/2025

Applications are now open for Summer 2025 participation in the Linux Foundation Mentorship Program, a program that provides structured guidance and opportunities for newcomers to contribute to th [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info