Skip to content

Decorate all APIs with correct SupportedOSPlatform attributes #10170

@marek-safar

Description

@marek-safar

As part of netcore migration, we need to correctly annotate all APIs with .NET 6 to work correctly with existing tooling (primary existing analyzers). The attributes already exist in .NET5 and could be extended if necessary.

Available attributes are listed at https://github.com/dotnet/designs/blob/main/accepted/2020/platform-checks/platform-checks.md#attributes

Required Actions

  • Generator: read existing attributes but generate the new ones for dotnet
  • Manual bindings: Add new attributes under a #if NET and hide existing ones under #else -> in progress
  • Update introspection tests to use the new attributes when doing the checks -> done, but parts disabled until manual bindings updates are completed

Time estimate: 2 weeks.

Metadata

Metadata

Assignees

Labels

dotnetAn issue or pull request related to .NET (6)dotnet-pri0.NET 6: required for stable releaseenhancementThe issue or pull request is an enhancementiOSIssues affecting iOSmacOSIssues affecting macOS

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions