Closed ShortDevelopment closed 3 months ago
Should be fixed with https://github.com/affederaffe/Tmds.DBus.SourceGenerator/commit/fcef8b51fdf2d20aebf79afb92ed20f6a0cde667. Do you mind trying the CI build and see if it fixes your issue?
This fixed it, thanks!
Issue
Methods using handles don't compile, as
ReadHandle
is generic andSafeHandle
is abstract.Reproduce
org.bluez.Profile1
Solution
Use
SafeFileHandle
https://github.com/affederaffe/Tmds.DBus.SourceGenerator/blob/42d16f485453e8182ce9fcf008f9b1844b3bf2f6/Tmds.DBus.SourceGenerator/DBusSourceGenerator.Parsing.cs#L196-L197https://github.com/affederaffe/Tmds.DBus.SourceGenerator/blob/42d16f485453e8182ce9fcf008f9b1844b3bf2f6/Tmds.DBus.SourceGenerator/DBusSourceGenerator.Utils.cs#L117