aspnetcore/release-notes/aspnetcore-10.0.md
This article highlights the most significant changes in ASP.NET Core in .NET 10 with links to relevant documentation.
This section describes new features for Blazor.
This section describes new features for Blazor Hybrid.
This section describes new features for SignalR.
This section describes new features for Minimal APIs.
This section describes new features for OpenAPI.
Metrics have been added for certain authentication and authorization events in ASP.NET Core. With this change, you can now obtain metrics for the following events:
The following image shows an example of the Authenticated request duration metric in the Aspire dashboard:
For more information, see xref:log-mon/metrics/built-in#microsoftaspnetcoreauthorization.
This section describes miscellaneous new features in .NET 10.
RedirectHttpResult.IsLocalUrlUse the new RedirectHttpResult.IsLocalUrl(url) helper method to detect if a URL is local. A URL is considered local if the following are true:
URLs using virtual paths "~/" are also local.
IsLocalUrl is useful for validating URLs before redirecting to them to prevent open redirection attacks.
if (RedirectHttpResult.IsLocalUrl(url))
{
return Results.LocalRedirect(url);
}
Thank you @martincostello for this contribution!
Use the articles in Breaking changes in .NET to find breaking changes that might apply when upgrading an app to a newer version of .NET.