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

Adding Linker Metadata #3038

Merged
merged 5 commits into from
Jan 4, 2024
Merged

Adding Linker Metadata #3038

merged 5 commits into from
Jan 4, 2024

Conversation

dansiegel
Copy link
Member

Description of Change

This adds polyfills for backwards compatibility with legacy targets such as net4.x and netstandard.
This updates a number of Generic APIs where we make use of the Container to resolve types to provide the DynamicallyAccessedMembers attribute to help provide the .NET Linker with additional metadata to prevent it from removing the constructors that would be used by DI. Similarly we have updated the Prism Containers to do the same.

This should help reduce issues that are encountered when enabling linking regardless of which platform you are building for.

API Changes

No public API's have explicitly been changed however a number of public API's with Generic Arguments have had an additional attribute added to provide context to the .NET Linker.

Behavioral Changes

Prism now actively discourages linking for constructors and of itself.

@dansiegel dansiegel merged commit 9851ddc into master Jan 4, 2024
7 checks passed
@dansiegel dansiegel deleted the dev/ds/link-updates branch January 4, 2024 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant