dotnet / platform-compat

Roslyn analyzer that finds usages of APIs that will throw PlatformNotSupportedException on certain platforms.
MIT License
279 stars 43 forks source link

support of System.DirectoryServices.AccountManagement vs others.. #224

Open jol64 opened 4 years ago

jol64 commented 4 years ago

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, which - to the extend I tested so far - work on .NET Core 3.1 on linux/Docker.

Ok, I checked https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient?view=netframework-4.8 and got the recommendation for MailKit (I am hesitating to follow that because I don´t need any of the extra features and SmtpClient given my use case was working fine for years)). For TcpClient I am lacking any recommendation..

Please advise.

Thanks, Joachim

jol64 commented 4 years ago

Imho https://github.com/dotnet/platform-compat/blob/master/docs/DE0005.md is a lot more adequate then https://docs.microsoft.com/en-us/dotnet/api/system.net.mail.smtpclient?view=netframework-4.8