AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Document what's new in ASP.NET Core for .NET 9 Preview 3

Open danroth27 opened this issue 1 year ago • 6 comments

Description

Update the "What's new in ASP.NET Core 9.0" for .NET 9 Preview 3

@adityamandaleeka @mkArtakMSFT Please have folks comment on this issue with the desired content.

FYI: @samsp-msft @JeremyLikness @mikekistler @claudiaregio @JamesNK @SteveSandersonMS @davidfowl

Page URL

https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-9.0?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/release-notes/aspnetcore-9.0.md

Document ID

4e75ad25-2c3f-b28e-6a91-ac79a9c683b6

Article author

@Rick-Anderson

danroth27 avatar Mar 12 '24 22:03 danroth27

Endpoint metadata on the developer exception page

The attributes you add to MVC actions, Minimal APIs and gRPC methods are examples of endpoint metadata. ASP.NET Core uses endpoint metadata to control endpoint behavior, such as routing, authentication and authorization, response caching, rate limiting, OpenAPI generation and much more.

.NET 9 adds metadata to the developer exception page. You can find the new metadata information in the Routing section alongside other routing information. This is a small quality-of-life improvement to debugging ASP.NET Core errors during development.

image

Thank you @Kahbazi for this contribution!

JamesNK avatar Apr 02 '24 05:04 JamesNK

Handle keyboard composition events in Blazor

The new KeyboardEventArgs.IsComposing property indicates if the keyboard event is part of a composition session. This is useful for tracking the composition state of keyboard events, which is crucial for handling international character input methods.

Thank you @BattlefieldDuck for this contribution!

danroth27 avatar Apr 05 '24 16:04 danroth27

Added InternalServerError and InternalServerError<TValue> to TypedResults

TypedResults are a helpful vehicle for returning strongly-typed HTTP status code-based responses from a minimal API. The TypedResults class now includes factory methods and types for returning "500 Internal Server Error" responses from your endpoints.

var app = WebApplication.Create();

app.MapGet("/", () => TypedResults.InternalServerError("Something went wrong!"));

app.Run();

Thank you @onurmicoogullari for this contribution!

danroth27 avatar Apr 05 '24 19:04 danroth27

@tdykstra Looks like most of this stuff got added to the What's New doc for .NET 9, but we're still missing Handle keyboard composition events in Blazor. Can we get that added?

danroth27 avatar Apr 17 '24 03:04 danroth27

👀

I'll put an 👁️ on this in case something else comes up. I didn't see the post.

guardrex avatar Apr 17 '24 22:04 guardrex

I'll put an 👁️ on this in case something else comes up. I didn't see the post.

@guardrex There's no blog post for most .NET 9 preview releases this time around. Instead, the related content is being published as release notes and then the release is announced using GitHub Discussions. Here's the release notes for ASP.NET Core in .NET 9 Preview 3: https://github.com/dotnet/core/blob/main/release-notes/9.0/preview/preview3/aspnetcore.md.

danroth27 avatar Apr 17 '24 22:04 danroth27