NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #2228 most downloaded on NuGet
Modern, low-level, high-performance D-Bus library for .NET that is NativeAOT compatible.
Latest stable
0.95.2
Last release 29 days ago
27 Oct 2026
Ships unpredictably
gaps range from 9 days to 13 months
Nearly every release is documented
notes for 29 of 29 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
29 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
Rename Notification.Exception to Notification.CompletionReason. The old property is obsoleted (#458).
MatchRule: fix key names for PathNamespace, Arg0Namespace and Arg0Path.
Tmds.DBus.Protocol:
Use fully-qualified names to avoid conflicts with generated types (#451).
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Support interfaces with more than 64 readable properties (#447).
Fixed DBusHandler code only being generated for the last interface when generating handler types for multiple interfaces (#445).
Func handler overloads added to avoid async void in user code (#440).
Func<ValueTask> handler overloads added to avoid async void in user code (#440).IReadableXxxProperties has been replaced with a unified IXxxProperties interface. Write-only properties are uncommon and the separate interface made explicit interface implementations more verbose (#441).DBusHandler.ParseInterface now ignores missing interface string on Properties requests (#442).[Breaking] Previously obsoleted types and APIs have been removed (#426):
Connection - use DBusConnection instead.ConnectionOptions - use DBusConnectionOptions instead.ClientConnectionOptions - use DBusConnectionOptions instead.ClientSetupResult - use DBusConnectionOptions.SetupResult instead.Address - use DBusAddress instead.ActionException - use ObserverHandler instead.IMethodHandler - use IPathMethodHandler instead.DBusException - use DBusErrorReplyException instead.DisconnectedException - use DBusConnectionClosedException instead.ConnectException - use DBusConnectFailedException instead.ProtocolException - use DBusUnexpectedValueException instead.MethodContext.Connection - use MethodContext.DBusConnection instead.AddMatchAsync overloads that accept Action<Exception?, T, object?, object?> are marked Obsolete. Use the new Action<Notification<T>> overloads instead (#427).Notification<T> / Notification / NotificationType: new callback API for signal observers, replacing the Action<Exception?, T, ...> pattern. Notifications distinguish between value, owner change, and completion events (#427).NameOwnerWatcher: tracks name ownership changes when calling methods and watching signals, enabling detection of service restarts. A DBusOwnerChangedException
is thrown when a method call targets an owner identifier from NameOwnerWatcher and the owner has changed (#425).OnException handler on DBusConnectionOptions: provides exception reporting and disconnect control via the new ExceptionContext / ExceptionSource types (#431).DBusGeneratorMode property to Handler, to generate proxies set it to Proxy. (#429, #433)Action<Exception?, T>, the generator generates a simple overload that accepts Action<T> for users that are not interested in completion notifications, and an Action<Notification<T>> overload to be notified of completions. (#427)IXxxProperties interface, the generated proxy code changed as follows:
GetPropertiesAsync method now returns the concrete XxxProperties class. When trying to get properties that were not set the get accessor throws. Alternatively, users can call GetNullablePropertiesAsync which returns an INullableXxxProperties interface which returns null for properties that are not set.WatchPropertiesChanged methods use a new IChangedXxxProperties interface.This release addresses vulnerabilities from malicious senders in Tmds.DBus and Tmds.DBus.Protocol:
This release addresses vulnerabilities from malicious senders in Tmds.DBus and Tmds.DBus.Protocol:
Advisory: https://github.com/tmds/Tmds.DBus/security/advisories/GHSA-xrw6-gwf8-vvr9
Tmds.DBus.Generator/Tmds.DBus.Tool:
Tmds.DBus.Generator/Tmds.DBus.Tool:
Protocol: SignatureReader: mark type as Obsolete and remove dead code.
Changes:
Bug fixes/improvements:
Revert the 0.90.0 change that passes reader/handler exceptions back to the handler.
Tmds.DBus.Generator/Tmds.DBus.Tool:
Tmds.DBus.Generator/Tmds.DBus.Tool:
Lower expected version of Microsoft.CodeAnalysis.CSharp to 4.12.0
Tmds.DBus.Generator:
This release does some refactoring which requires changes from the user. The version is binary compatible with the previous version. Obsolete attribut
This release does some refactoring which requires changes from the user. The version is binary compatible with the previous version. Obsolete attributes indicate what changes a user should make.
`Connection` -> `DBusConnection` (https://github.com/tmds/Tmds.DBus/pull/373)
`Address` -> `DBusAddress` (https://github.com/tmds/Tmds.DBus/pull/372)
`ActionException` -> `ObserverHandler` (https://github.com/tmds/Tmds.DBus/pull/371)
When you have code that requires the Connection type, you can call DBusConnection.AsConnection().
DBusExceptionBase
├── DBusConnectionException
│ ├── DBusConnectionClosedException
│ │ └── DisconnectedException (obsolete -> DBusConnectionClosedException)
│ └── DBusConnectFailedException
│ └── ConnectException (obsolete -> DBusConnectFailedException)
└── DBusMessageException
├── DBusReadException
├── DBusErrorReplyException
│ └── DBusException (obsolete -> DBusErrorReplyException)
└── DBusUnexpectedValueException
└── ProtocolException (obsolete -> DBusUnexpectedValueException)
Behavioral changes:
Reader throws DBusReadException when the message body and the read operations mismatch. When trying to read a handle that was already read, it throws DBusUnexpectedValueException. (https://github.com/tmds/Tmds.DBus/pull/385, https://github.com/tmds/Tmds.DBus/pull/399)Message.SignatureAsString return an empty string when the signature header is omitted. (https://github.com/tmds/Tmds.DBus/pull/384)Reader.ReadHandle methods return a non-null handle to avoid user having to do null-handling. (https://github.com/tmds/Tmds.DBus/pull/364)New APIs:
DBusService type represents a peer reachable via the connection. (https://github.com/tmds/Tmds.DBus/pull/374)DBusObject type may be used as a base class for proxy classes. (https://github.com/tmds/Tmds.DBus/pull/376)SkipSafeHandle type may be used with the Reader.ReadHandle/VariantValue.ReadHandle method to indicate a handle should not be read. This enables letting the user decide to skip reading the handle or not through what generic argument they are passing. (https://github.com/tmds/Tmds.DBus/pull/363)DBusConnection for watching signals and property changes. (https://github.com/tmds/Tmds.DBus/pull/376)Tmds.DBus.Protocol API. Only proxies are supported. (https://github.com/tmds/Tmds.DBus/pull/378)Tmds.DBus.Protocol library includes public API documentation (https://github.com/tmds/Tmds.DBus/pull/362)codegen for the Tmds.DBus.Protocol API generates a new IXxxProperties interface which is used for GetAllPropertiesAsync and WatchPropertiesChangedAsync. This interface provides the properties as nullable which makes explicit when a value is not set. Additionally the HasXxxChanged properties enable checking in WatchPropertiesChangedAsync whether a property has changed/was invalidated. When HasXxxChanged is true, the Xxx property may still return null, since the D-Bus specification allows indicating a property was invalidated without including its value. (https://github.com/tmds/Tmds.DBus/pull/392)codegen for the Tmds.DBus.Protocol API no longer generates an XxxService class. Instead extension methods for the new `DBusService type are generated. (https://github.com/tmds/Tmds.DBus/pull/374)codegen for the Tmds.DBus.Protocol API when targeting netstandard2.0 requires a LangVersion of 11+ and polyfill (like PolySharp). (https://github.com/tmds/Tmds.DBus/pull/388)codegen for the Tmds.DBus API requires the --tmds-dbus-api argument to be specified. (https://github.com/tmds/Tmds.DBus/pull/380)System.CommandLine. (https://github.com/tmds/Tmds.DBus/pull/367)codegen: Add comment that code is auto-generated. (https://github.com/tmds/Tmds.DBus/pull/368)monitor: don't read the handles (they aren't passed to the monitor). (https://github.com/tmds/Tmds.DBus/pull/383)Tmds.DBus codegen. This makes the tool package much smaller. (https://github.com/tmds/Tmds.DBus/pull/365)Protocol: add hierarchical path support and improved async handling for method handling.
Tmds.DBus.Protocol:
Use .NET 9 System.Threading.Lock
Tmds.DBus:
Tmds.DBus.Protocol:
Tmds.DBus.Tool:
This release backports the fixes from 0.92.0 to Tmds.DBus.Protocol.
This release backports the fixes from 0.92.0 to Tmds.DBus.Protocol.
Advisory: https://github.com/tmds/Tmds.DBus/security/advisories/GHSA-xrw6-gwf8-vvr9
MessageWriter: add missing overloads for WriteArray/WriteDictionary that accept VariantValue instead of Variant. (https://github.com/tmds/Tmds.DBus/pu
Tmds.DBus.Protocol:
WriteArray/WriteDictionary that accept VariantValue instead of Variant. (https://github.com/tmds/Tmds.DBus/pull/327).Removes public API that was added in 0.21.0:
Removes public API that was added in 0.21.0:
In v0.17.0 support for NativeAOT safe variant handling was enabled through two types: VariantValue for reading variants, and Variant for writing varia
In v0.17.0 support for NativeAOT safe variant handling was enabled through two types: VariantValue for reading variants,
and Variant for writing variants. The focus on this release is to support both reading and writing using the VariantValue type.
This enables writing back variants that were previously read.
The Variant type has been marked obsolete. Users should now be able to use the VariantValue type as a direct replacement.
Note that the Dict/Array/Struct types are not obsolete. They can be used for creating composite VariantValues.
The VariantValue type now behaves different for variants that hold other variants. Such variants are not common because
usually a variant will directly hold an actual (that is: non-variant) value. Variants that hold other variants are represented
as their own VariantValue instance with a Type of Variant. The nested variant value can be obtained by calling GetVariantValue.
There are some additional breaking API changes which shouldn't affect most users because involve low-level APIs for D-Bus marshalling and signature handling.
Utf8Span type has been removed. APIs use ReadOnlySpan<byte> instead.VariantValue.GetSignature returns a Signature (instead of a string).VariantValue.GetArray<T> requires a T of Signature (instead of a string) for getting arrays of signature.Reader.ReadSignature returns Signature instead of Utf8Span. ReadSignatureAsSignature has been removed. The new ReadSignatureAsSpan returns ReadOnlySpan<byte>.The following fixes have been made to the codegen command for the protocol API (in https://github.com/tmds/Tmds.DBus/pull/307):
Remove members that are not NativeAOT/Trimming compatible.
Tmds.DBus.Protocol:
Tmds.DBus:
SafeHandle types must have a parameterless constructor.
Tmds.DBus.Protocol:
Support removing method handlers.
Tmds.DBus.Protocol:
Tmds.DBus:
Main feature: The focus of this release is improve trimming/NativeAOT support in the protocol library. Non-compatible members have been annotated and
Main feature:
The focus of this release is improve trimming/NativeAOT support in the protocol library. Non-compatible members have been annotated and obsoleted. The library adds AOT-friendly types for reading and writing variants: VariantValue and Variant.
Other changes:
Protocol: add API to control whether AddMatch emits exceptions on dispose.
Protocol: fix emitOnCapturedContext.
Tmds.DBus: Add .NET 6.0 target to eliminate package references
Tmds.DBus.Protocol: Make SignatureReader public
Initial release of Tmds.Dbus.Protocol library which provides a low-level protocol API for D-Bus
_camelCase rather than _PascalCase (#171)One column per quarter.