platform-compat icon indicating copy to clipboard operation
platform-compat copied to clipboard

Roslyn analyzer that finds usages of APIs that will throw PlatformNotSupportedException on certain platforms.

Results 43 platform-compat issues
Sort by recently updated
recently updated
newest added

The last nuget package I see is from 2 years ago

It's fine that you don't recommend SecureString for new code, but what is the replacement in .NET Core or .NET 5?

With DE0002 being given to projects that uses ``using System.Security.Permissions;`` just to be able to register an unhandled exception event and to control appdomains (which registering that event requires). How...

`System.Net.HttpListener` does not support many modern protocols. It is compat-only (i.e. only critical fixes, no new improvements, enhancements). It's useful for low-volume basic server requests, but does not scale to...

[DE0005: SmtpClient shouldn't be used](https://github.com/dotnet/platform-compat/blob/master/docs/DE0005.md) is the linked to from the [SmtpClient docs](https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient?view=netframework-4.7.2#remarks) as "more information" about why `SmtpClient` is deprecated, but "doesn't support many modern protocols" and "doesn't scale"...

Just wondering if there is any official plans to make use of this on Nugets server side for information. See my issue: https://github.com/NuGet/NuGetGallery/issues/7079 which relates heavily to this. "Would it...

What is the best practice for linux. instead of Registry. there is not Registy in Linux

Using the analyser with the new Span classes from [System.Memory](https://www.nuget.org/packages/System.Memory/) on .NET Core 2.1 and I'm getting warnings that the `Slice` method is not supported, yet the program does run....

There is no guidance about how to deal with this. Is there a recommended workaround for this?

based on the suggestion in https://github.com/microsoft/dotnet-apiport/issues/851 I ran Roselyn analyzer on my project. It did not spot System.DirectoryServices.AccountManagement as not supported. However it spotted TcpClient and SmtpClient as being deprecated,...