Disable the Platform Compat Analyzer until #41354 is fixed #41367
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We intend to merge the Platform Compatibility Analyzer into the .NET 5.0 RC1 SDK. When the updated version of the
NetAnalyzers
package is taken into thedotnet/runtime
repo that contains this analyzer, it will introduce build warnings. Those build warnings surface because:[SupportedOSPlatform]
and[UnsupportedOSPlatform]
attributes to many APIs nowBecause these warnings will occur, we are going to disable the analyzer in the
dotnet/runtime
repo before merging it into the SDK. Before we ship .NET 5.0 RC2 though, we want to re-enable the analyzer and address all of the warnings introduced. #41354 tracks that work.