Skip to content

Compatibility issue with Tmds.DBus/Tmds.DBus.Protocol 0.94.0 (missing Connection/IMethodHandler in generated code) #38

@HakanL

Description

@HakanL

Summary

Tmds.DBus.SourceGenerator 0.0.22 appears incompatible with Tmds.DBus / Tmds.DBus.Protocol 0.94.0.

Generated code fails to compile with missing symbols after upgrading runtime packages.

Environment

  • Tmds.DBus.SourceGenerator: 0.0.22
  • Tmds.DBus: 0.94.0
  • Tmds.DBus.Protocol: 0.94.0
  • .NET SDK: 10.0 (also reproducible in net10.0 target project)

Repro

  1. Reference Tmds.DBus.Protocol 0.94.0 and Tmds.DBus.SourceGenerator 0.0.22.
  2. Add an AdditionalFiles XML definition with DBusGeneratorMode="Proxy".
  3. Build project.

Actual result

Build fails in generated files with errors like:

  • CS0246: The type or namespace name 'Connection' could not be found
  • CS0246: The type or namespace name 'IMethodHandler' could not be found

Adding explicit Tmds.DBus reference resolves Connection errors in our test, but IMethodHandler errors remain.

Expected result

Generated code should compile successfully against current stable Tmds.DBus / Tmds.DBus.Protocol (0.94.0), or compatibility constraints should be documented.

Notes

If 0.0.22 intentionally targets an older API surface, could you share:

  • the last compatible Tmds.DBus / Tmds.DBus.Protocol versions
  • whether an update for 0.94.0 is planned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions