Open kenkendk opened 4 months ago
There are 167 warnings about incorrect calls. Most of them can be resolved by using the attribute and correct platform check except for Captcha/CaptchaUtil: This will need to be reworked, because it uses System.Drawing, which needs GDI+ and is only supported on Windows.
If you can't use System.Drawing with your application, recommended alternatives include ImageSharp, SkiaSharp, Windows Imaging Components, and Microsoft.Maui.Graphics.
I have fixed the Captcha stuff as part of dropping HttpServer
. I am using ImageSharp for now.
The codebase is using a custom platform detection in
Duplicati.Library.Utility
which can be updated to use the standard .NETOperatingSystem
class.Methods and classes that are OS specific should be marked with
[SupportedOSPlatform("windows")]
attributes, and any warnings related to calling operating system specific code should be fixed.