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

Add optional runtime supported attributes #3

Merged
merged 9 commits into from
Oct 22, 2022

Conversation

Sergio0694
Copy link
Owner

Description

This PR adds the new "PolySharpIncludeRuntimeSupportedAttributes" option, which triggers generating dummy versions of some runtime supported attributes, which can help in multi-targeting scenarios. These are the new attributes added:

  • Reflection annotation attributes (see docs):
    • [DynamicallyAccessedMembers]
    • [DynamicDependency]
    • [RequiresUnreferencedCode]
    • [UnconditionalSuppressMessage]
  • [StackTraceHidden] (see here)
  • [UnmanagedCallersOnly] (see docs))
  • Platform support annotation attributes (see docs):
    • [ObsoletedOSPlatform]
    • [SupportedOSPlatform]
    • [SupportedOSPlatformGuard]
    • [TargetPlatform]
    • [UnsupportedOSPlatform]
    • [UnsupportedOSPlatformGuard]

@Sergio0694 Sergio0694 added the enhancement New feature or request label Oct 22, 2022
@Sergio0694 Sergio0694 merged commit 018c289 into main Oct 22, 2022
@Sergio0694 Sergio0694 deleted the dev/optional-runtime-attributes branch October 22, 2022 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant