https://github.com/dotnet/platform-compat
Roslyn analyzer that finds usages of APIs that will throw PlatformNotSupportedException on certain platforms.
https://github.com/dotnet/platform-compat
netcore netstandard roslyn roslyn-analyzer
Last synced: 10 days ago
JSON representation
Roslyn analyzer that finds usages of APIs that will throw PlatformNotSupportedException on certain platforms.
- Host: GitHub
- URL: https://github.com/dotnet/platform-compat
- Owner: dotnet
- License: mit
- Archived: true
- Created: 2017-03-24T03:49:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-27T17:26:43.000Z (almost 5 years ago)
- Last Synced: 2024-12-04T10:02:58.509Z (10 months ago)
- Topics: netcore, netstandard, roslyn, roslyn-analyzer
- Language: C#
- Homepage:
- Size: 1.64 MB
- Stars: 279
- Watchers: 68
- Forks: 43
- Open Issues: 43
-
Metadata Files:
- Readme: README.md
- License: LICENSE.TXT
- Code of conduct: CODE-OF-CONDUCT.md
Awesome Lists containing this project
README
# Platform Compatibility Analyzer
This project has been replaced by analzyers that are built into the .NET SDK:
* [Spec: Platform compatibility analzyer](https://github.com/dotnet/designs/blob/main/accepted/2020/platform-checks/platform-checks.md)
* [Spec: Better obsoletion](https://github.com/dotnet/designs/blob/main/accepted/2020/better-obsoletion/better-obsoletion.md)
* [Announcement: Platform compatibility analzyer](https://devblogs.microsoft.com/dotnet/the-future-of-net-standard/#dealing-with-windows-specific-apis)As such, it's archived.
----
[](https://dev.azure.com/dnceng/public/_build/latest?definitionId=449&branchName=master&view=logs) [](https://dev.azure.com/dnceng/public/_build/latest?definitionId=449&branchName=master&view=logs)
This tool provides [Roslyn](https://github.com/dotnet/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](https://blogs.msdn.microsoft.com/dotnet/2017/10/31/introducing-api-analyzer/)!
## Usage
In order to use it, install the NuGet package [Microsoft.DotNet.Analyzers.Compatibility](https://www.nuget.org/packages/Microsoft.DotNet.Analyzers.Compatibility).
## Experience
### Usage of .NET Core and .NET Standard APIs that throw `PlatformNotSupportedException`

See [PC001](docs/PC001.md) for more details.
### Usage of .NET Standard 2.0 APIs missing from .NET Framework 4.6.1

See [PC002](docs/PC002.md) for more details.
### Usage of deprecated APIs

See [DEXXX files in the docs folder](docs) for more details.