Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ChrisPulman
Copy link
Member

What kind of change does this PR introduce?

update

What is the current behavior?

Some AOT markup is applied to broadly

What is the new behavior?

Added [RequiresDynamicCode] and [RequiresUnreferencedCode] attributes to methods and interfaces that use reflection and are not compatible with AOT environments in .NET 6 or greater. This change improves compatibility and provides clearer warnings for developers targeting AOT scenarios.

What might this PR break?

AOT requirements updated

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:

Added [RequiresDynamicCode] and [RequiresUnreferencedCode] attributes to methods and interfaces that use reflection and are not compatible with AOT environments in .NET 6 or greater. This change improves compatibility and provides clearer warnings for developers targeting AOT scenarios.
@ChrisPulman ChrisPulman merged commit a0750a1 into main Aug 7, 2025
1 check passed
@ChrisPulman ChrisPulman deleted the CP_UpdateAOT branch August 7, 2025 15:19
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant