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

Fix NotSupportedException in AoT test project #3171

Merged

Conversation

martincostello
Copy link
Collaborator

Fix NotSupportedException being thrown with .NET 9
when accessing ModelMetadata.ElementType in a native AoT application due to Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported being disabled.

Found while investigating #3153.

Fix `NotSupportedException` being thrown with .NET 9
 when accessing `ModelMetadata.ElementType` in a native AoT application due to `Microsoft.AspNetCore.Mvc.ApiExplorer.IsEnhancedModelMetadataSupported` being disabled.
@martincostello martincostello enabled auto-merge (rebase) November 23, 2024 13:38
@martincostello martincostello merged commit 09561bb into domaindrivendev:master Nov 23, 2024
9 checks passed
@martincostello martincostello deleted the fix-nativeaot-project branch November 23, 2024 22:46
@martincostello martincostello added this to the v7.0.1 milestone Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants