Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add AOT reflection warnings for .NET 6+ methods - #4085

#4085
Merged
ChrisPulman merged 3 commits into
mainreactiveui/ReactiveUI:mainfrom
CP_UpdateAOTreactiveui/ReactiveUI:CP_UpdateAOTCopy head branch name to clipboard
Aug 7, 2025
Merged

Add AOT reflection warnings for .NET 6+ methods#4085
ChrisPulman merged 3 commits into
mainreactiveui/ReactiveUI:mainfrom
CP_UpdateAOTreactiveui/ReactiveUI:CP_UpdateAOTCopy head branch name to clipboard

Conversation

@ChrisPulman

Copy link
Copy Markdown
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
@github-actions

Copy link
Copy Markdown

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.