mirror of
https://github.com/Devolutions/IronRDP.git
synced 2026-11-27 10:42:37 +00:00
0a79fd2178
Native AOT and trimmed apps that reference `Devolutions.IronRdp` cannot tell whether the bindings are safe for them, because the package does not declare it. The bindings already are: the generated `Raw*` types use plain `DllImport` calls with pointer and primitive arguments and `[MarshalAs(UnmanagedType.U1)]` booleans, and `DiplomatWrite` takes function pointers for two fixed delegate types, which Native AOT supports. Setting `IsAotCompatible` turns on the trim, AOT and single-file analyzers for the project, so a later change that breaks AOT shows up as a build warning, and marks the assembly as trimmable. The analyzers report no warnings today. Co-authored-by: haefele-octoja <267442939+haefele-octoja@users.noreply.github.com>