Files
haefele-octoja 0a79fd2178 build(ffi): mark .NET bindings as AOT-compatible (#2426)
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>
2026-11-12 14:28:31 -05:00
..