7 Commits

Author SHA1 Message Date
Julien Lebosquain 0fb64d65cc Enable warnings as errors (#20504) 2026-01-21 08:16:46 +00:00
Max Katz d7040e22d5 Begin with DisableRuntimeMarshalling support + fix macOS Metal AOT (#17116)
* Add attribute

* Replace `SetLastError = true` with `Marshal.GetLastSystemError()`

* Make Avalonia.Base and Avalonia.Skia compatible with DisableRuntimeMarshalling

* First step in Android DisableRuntimeMarshalling support

* Make Avalonia.Browser compatible

* Set EnableRuntimeMarshalling=true on all projects we are not yet ready to support without runtime marshalling
2024-09-25 10:48:25 +00:00
Max Katz e7b196cf03 More trimming fixes, enable analyzers unconditionally (#15815)
* Use UnconditionalSuppressMessage instead of #pragma in DefaultConverter

* Add missing DynamicallyAccessedMembers on WinRTInspectable

* Add missing UnconditionalSuppressMessage on Expression.OperatorName

* Use UnconditionalSuppressMessage instead of #pragma warning disable for all trimming warnings

* Don't even create ReflectionMethodAccessorPlugin if IsDynamicCodeSupported is false

* Remove old condition, as we are ready to be fully AOT compatible
2024-06-05 00:58:04 +00:00
Max Katz 7cab284b89 Fix some new error/warnings from .NET 8 2024-02-07 23:35:00 -08:00
Max Katz 18d02f1aa0 Update TrimmingEnable+NullableEnable to avoid unnecessary warning 2024-02-02 21:50:27 -08:00
Julien Lebosquain 9f5a1027fd Warning cleanup (#13656)
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
2023-11-20 09:34:46 +00:00
Max Katz de039015ca Small cleanup of warnings 2022-12-05 02:10:34 -05:00