-
Notifications
You must be signed in to change notification settings - Fork 25.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the "What's new in ASP.NET Core 10.0" for .NET 10 Preview 3 #34948
Comments
[Blazor] Response streaming default and opt-outCovered by the PR at #34894. cc: @pavelsavara @campersau ... and the PR includes the latest description info from the PR, including the breaking change piece. |
[Blazor] End-to-end fingerprinting of assets in standalone modeMost of the .NET assets are fingerprinted since .NET 9, with three exceptions. These changes to the standalone application will fill the missing pieces. During build/publish it will override placeholders in This setup is specific for standalone mode. In Blazor Web these are already handled with index.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BlazorWasmFingerprintingE2E</title>
<base href="/" />
....
+ <script type="importmap"></script>
</head>
<body>
<div id="app">
<svg class="loading-progress">
<circle r="40%" cx="50%" cy="50%" />
<circle r="40%" cx="50%" cy="50%" />
</svg>
<div class="loading-progress-text"></div>
</div>
<div id="blazor-error-ui">
An unhandled error has occurred.
<a href="." class="reload">Reload</a>
<span class="dismiss">🗙</span>
</div>
- <script src="_framework/blazor.webassembly.js"></script>
+ <script src="_framework/blazor.webassembly#[.{fingerprint}].js"></script>
</body>
</html> blazorwasm.csproj<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
+ <WriteImportMapToHtml>true</WriteImportMapToHtml>
</PropertyGroup>
</Project> ... resolved by #35057. |
This comment has been minimized.
This comment has been minimized.
Original post from @sander1095:
Other bug fixes: dotnet/aspnetcore#60937 EDIT: @Rick-Anderson |
This comment has been minimized.
This comment has been minimized.
[Blazor] Rename
|
This comment has been minimized.
This comment has been minimized.
[Blazor] Fix use of ReconnectModal in Blazor templatescc: @oroztocil ... I'll update the guidance for the changes that you mention. ... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
EDIT:
Validation support in Minimal APIsSupport for validation in Minimal APIs is now available. This feature allows you to request validation of data
When validation fails, the runtime will return a 400 Bad Request response with To enable built-in validation support for minimal APIs, call the builder.Services.AddValidation(); The implementation automatically discovers types that are defined in minimal API handlers or as base types of types defined in minimal API handlers. Validation is then performed on these types by an endpoint filter that is added for each endpoint. Validation can be disabled for specific endpoints by using the app.MapPost("/products",
([EvenNumber(ErrorMessage = "Product ID must be even")] int productId, [Required] string name)
=> TypedResults.Ok(productId))
.DisableValidation(); >>>>>>>>>> Content below is outdated. <<<<<<<<<<<<<[Minimal APIs] Document validation support for minimal APIsMoved here from Safia's issue at #35090 (same deal ... the original issue lacked metadata) ...
|
Add Microsoft.AspNetCore.OpenApi to the webapiaot templateSupport for OpenAPI document generation with the Microsoft.AspNetCore.OpenApi packagte is now included by default in the webapiaot project template. This support can be disabled if desired by using the This was a community contribution by @sander1095. Thanks for this contribution!
|
Support for Server-Sent Events (SSE)ASP.NET Core now supports returning a Server-Sent Events (SSE) is a server push technology that allows a server to send a stream of event messages to a The The following example illustrates how to use the app.MapGet("/json-item", (CancellationToken cancellationToken) =>
{
async IAsyncEnumerable<HeartRateEvent> GetHeartRate(
[EnumeratorCancellation] CancellationToken cancellationToken)
{
while (!cancellationToken.IsCancellationRequested)
{
var heartRate = Random.Shared.Next(60, 100);
yield return HeartRateEvent.Create(heartRate);
await Task.Delay(2000, cancellationToken);
}
}
return TypedResults.ServerSentEvents(GetHeartRate(cancellationToken), eventType: "heartRate");
}); EDIT: @Rick-Anderson : |
@Rick-Anderson, I don't have any here for SignalR or gRPC, so I am just picking ones at random to edit and quickly pull in as an include. I'm doing Validation support in Minimal APIs at the moment, can you pull in Add Microsoft.AspNetCore.OpenApi to the webapiaot template or Support for Server-Sent Events (SSE)? |
..moving to include and editing Add Microsoft.AspNetCore.OpenApi to the webapiaot template |
@danroth27, @mikekistler, @danmoseley, @sander1095 and @cmastr: This What's New topic update for .NET 10 Preview 3 was published today just after the .NET 10 Prev 3 release notes link was made available on the SDK download page. Thanks everyone for the fantastic help! |
Description
Update the "What's new in ASP.NET Core 10.0" for .NET 10 Preview 3
Page URL
https://learn.microsoft.com/en-us/aspnet/core/release-notes/aspnetcore-10.0?view=aspnetcore-9.0
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/release-notes/aspnetcore-10.0.md
Document ID
a7ad4b01-2333-32d8-b759-e044edfb9102
Platform Id
2f8fb8ab-5309-0a77-987a-c867c6517d2b
Article author
@Rick-Anderson
Metadata
Related Issues
The text was updated successfully, but these errors were encountered: