Skip to content

Epic: Expand platform compat annotations to cover more configurations #43616

Closed

Description

@cathysull

In .NET 5 we started with annotations for features and APIs which are not universally available everywhere. We picked Windows and browsers as the initial targets for the experience. To make the experience complete we need to continue annotating remaining platforms we support (e.g. Linux-specific APIs that we expect to add). It goes beyond this as well. It's certainly a "last mile" experience, but for example today you won't get any warnings if you try to use MemoryMappedFile.CreateNew(string, ...) with a non-null string path, even though only a null string path is supported on Linux and macOS. The current platform analyzer doesn't account for such possibilities, with annotations done to just say "if any usage of this API works on a platform, then consider it supported on that platform". We should look at what APIs fall into those partially-supported buckets and consider ways of improving the experience around them. This might be the next issue developers porting to .NET 5 get hung up on from a cross-platform perspective.

We also realized that the platform vertical is not the only limiting factor for APIs availability. There are others based primarily on workload limitations which should offer developers the same experience. We will expand compatibility annotations to cover configurations such as AOT, self-contained bundles and single file.

The projects which benefits most from the annotations are large scale solutions with many dependencies which are usually not available as a source code implementation. Exploring how to run the analysis on the final output would further improve the impact of tooling.

Work Items

Activity

  1. added
    User Story
    on Oct 19, 2020
  2. added
    untriaged
    on Oct 19, 2020
  3. added
    Priority:2
    Priority:1
    and removed
    Priority:2
    on Oct 30, 2020
  4. jeffhandley commented on Oct 30, 2020

    @jeffhandley
    Member

    Can we also consider integrating the OSPlatform support attributes into the .NET Portability Analyzer so that the report can show the APIs that are available in .NET Core but have limited OSPlatform support?

  5. changed the title [-]User Story: Expand platform compat annotations to cover more configurations[/-] [+]Epic: Expand platform compat annotations to cover more configurations[/+] on Nov 27, 2020
  6. added
    Epic
    and removed
    User Story
    untriaged
    on Nov 27, 2020
  7. danmoseley commented on Jan 5, 2021

    @danmoseley
    Contributor

    @jeffhandley @cathysull we can mark this as Committed on the .NET 6.0 board, I guess? Note this is marked P1 but has P0 children (which by definition are committed).

  8. added this to the 6.0.0 milestone on Feb 9, 2021
  9. jeffhandley commented on Aug 11, 2021

    @jeffhandley
    Member

    I'm closing the epic; there are only a couple of stories that remain, and they are being tracked individually and will soon close as well.

  10. ghost locked as resolved and limited conversation to collaborators on Sep 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EpicPriority:1Team:Librariesarea-Meta

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions