Skip to content
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

[.NET 8] Known Native AOT Issues #8288

Open
captainsafia opened this issue Mar 14, 2023 · 0 comments
Open

[.NET 8] Known Native AOT Issues #8288

captainsafia opened this issue Mar 14, 2023 · 0 comments

Comments

@captainsafia
Copy link
Member

captainsafia commented Mar 14, 2023

This issue outlines the set of features that are not yet supported fully in applications that have been AoT compiled to native code.

If you encounter problems in a preview that are not in the list below, please file an issue in the appropriate repo.

8.0-preview4

Request Delegate Generator

System.Text.Json

8.0-preview3 ### Request Delegate Generator - The `Produces` and `Accepts` metadata are not automatically added to endpoint metadata for a given endpoint. See https://github.com/dotnet/aspnetcore/issues/46277. - The generated code will not log, or throw exceptions in development mode, when parameter binding fails. Instead, the request will return a `400` status code. See https://github.com/dotnet/aspnetcore/issues/46362. - The generated code does not support parameters marked with `AsParameters`. See https://github.com/dotnet/aspnetcore/issues/46336. - The generated code does not support parameters processed as form data via `IFormCollection`, `IFormFile`, or `FromForm`. See https://github.com/dotnet/aspnetcore/issues/47200. - The generated code does not support route handlers that return an anonymous type. See https://github.com/dotnet/aspnetcore/issues/47244. - The generated code does not support generic types from outer scope. See https://github.com/dotnet/aspnetcore/issues/47338 - The generated code does not support private parameter and return types. See https://github.com/dotnet/aspnetcore/issues/47339 - The generated code does not respect the `RouteHandlerOptions.ThrowOnBadRequest` property. See https://github.com/dotnet/aspnetcore/issues/46362. - The generated code does not support having two endpoints with the route handlers that only differ in nullability annotations. See https://github.com/dotnet/aspnetcore/issues/46622. - The `IEndpointRouteBuilder.Map` and `IEndpointRouteBuilder.MapMethods` overloads are not supported. See https://github.com/dotnet/aspnetcore/issues/47196. - The generated code does not respect configured `JsonSerializerOptions` when reading from the request body. See https://github.com/dotnet/aspnetcore/issues/47145. - Generation fails when default parameter values are provided. See https://github.com/dotnet/aspnetcore/issues/47266

System.Text.Json

Other

The following areas do not have AoT support at the moment.

  • Authentication (JwtBearer coming soon)
  • SignalR
  • MVC
  • Blazor Server

See also https://learn.microsoft.com/dotnet/core/deploying/native-aot/

@dotnet dotnet locked as resolved and limited conversation to collaborators Mar 14, 2023
@eerhardt eerhardt changed the title [.NET 8] Known AoT Issues [.NET 8] Known Native AOT Issues Mar 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants