You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Developers can follow documentation to resolve Platform Compatibility warnings #44919
Cost:SWork that requires one engineer up to 1 weekPriority:3Work that is nice to haveTeam:LibrariesUser StoryA single user-facing feature. Can be grouped under an epic.area-MetadocumentationDocumentation bug or enhancement, does not impact product or test code
The Platform Compatibility Analyzer was introduced in .NET 5.0, raising new diagnostics when APIs are referenced that are unsupported on targeted platforms. These diagnostic messages result in build warnings, but there are no corresponding code fixers in place to automatically address the warnings or illustrate how to do so. Instead, developers must turn to the documentation for the analyzer and the CA1416 diagnostic ID to determine how to handle the warnings.
There are multiple ways to handle the warnings, and each of these could be supplied a possible fixer.
When developers encounter warnings from the Platform Compatibility analyzer, they can be uncertain which approach is best for resolving the warnings. To aide them we will collect our own best practices and document how we've decided to use each remediation approach in our own code base.
Review and document the patterns and practices that are emerging within the runtime code
Categorize the patterns into scenarios such that we can document refined guidance for when to use each pattern
changed the title [-]Implement Code Fixers for Platform Compatibility warnings[/-][+]Developers have easy way to resolve Platform Compatibility warnings[/+]on Nov 27, 2020
changed the title [-]Developers have easy way to resolve Platform Compatibility warnings[/-][+]Developers can easily resolve Platform Compatibility warnings with a code fixer[/+]on Jan 21, 2021
changed the title [-]Developers can easily resolve Platform Compatibility warnings with a code fixer[/-][+]Developers can follow documentation to resolve Platform Compatibility warnings[/+]on Jan 22, 2022
Cost:SWork that requires one engineer up to 1 weekPriority:3Work that is nice to haveTeam:LibrariesUser StoryA single user-facing feature. Can be grouped under an epic.area-MetadocumentationDocumentation bug or enhancement, does not impact product or test code
Activity
[-]Implement Code Fixers for Platform Compatibility warnings[/-][+]Developers have easy way to resolve Platform Compatibility warnings[/+][-]Developers have easy way to resolve Platform Compatibility warnings[/-][+]Developers can easily resolve Platform Compatibility warnings with a code fixer[/+]9 remaining items
[-]Developers can easily resolve Platform Compatibility warnings with a code fixer[/-][+]Developers can follow documentation to resolve Platform Compatibility warnings[/+]