Roslyn analyzer that finds usages of APIs that will throw PlatformNotSupportedException on certain platforms.
Clone or download
pjanotti Suppress some PC0001 related to Pipes (#121)
Adjusting the rules related to IO.Pipes
Latest commit 532b760 Jun 2, 2018

Platform Compatibility Analyzer

Branch Debug Release
master Build Status Build Status

This tool provides Roslyn analyzers that find usages of .NET Core & .NET Standard APIs that are problematic on specific platforms or are deprecated.

You can find out more in our blog post!


In order to use it, install the NuGet package Microsoft.DotNet.Analyzers.Compatibility.


Usage of .NET Core and .NET Standard APIs that throw PlatformNotSupportedException

See PC001 for more details.

Usage of .NET Standard 2.0 APIs missing from .NET Framework 4.6.1

See PC002 for more details.

Usage of deprecated APIs

See DEXXX files in the docs folder for more details.