Tmds.DBus.SourceGenerator 0.0.5
Tmds.DBus.SourceGenerator
A roslyn source generator targeting the Tmds.DBus.Protocol API
Introduction
This source generator completely eliminates the usage of reflection in order to be trimmer- and AOT-friendly. For further documentation of Tmds.DBus and DBus in general, see https://github.com/tmds/Tmds.DBus#readme.
Usage
Either install the NuGet package Tmds.DBus.SourceGenerator or clone the git repository and add a project reference to the source generator in your .csproj
<ItemGroup>
<ProjectReference Include="./Tmds.DBus.SourceGenerator/Tmds.DBus.SourceGenerator/Tmds.DBus.SourceGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
</ItemGroup>
Then add the xml definitions as AdditionalFiles to your project.
Depending on whether you want to generate a Proxy or a handler, set the DBusGeneratorMode to either Proxy or Handler, respectively.
<ItemGroup>
<AdditionalFiles Include="DBusXml/DBus.xml" DBusGeneratorMode="Proxy" />
<AdditionalFiles Include="DBusXml/StatusNotifierItem.xml" DBusGeneratorMode="Handler" />
</ItemGroup>
Now you can instantiate the generated proxy class and use it like with the traditional Tmds.DBus. For handlers, create a new class and inherit from the generated one and implement its abstract methods.
Showing the top 20 packages that depend on Tmds.DBus.SourceGenerator.
| Packages | Downloads |
|---|---|
|
Avalonia.FreeDesktop
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
|
2 |
| Version | Downloads | Last updated |
|---|---|---|
| 0.0.22 | 0 | 2025/10/13 |
| 0.0.21 | 0 | 2025/2/28 |
| 0.0.20 | 0 | 2024/10/9 |
| 0.0.19 | 0 | 2024/8/18 |
| 0.0.18 | 0 | 2024/7/18 |
| 0.0.17 | 0 | 2024/6/8 |
| 0.0.16 | 0 | 2024/4/18 |
| 0.0.15 | 0 | 2024/1/31 |
| 0.0.14 | 0 | 2024/1/28 |
| 0.0.13 | 0 | 2023/11/18 |
| 0.0.12 | 0 | 2023/11/15 |
| 0.0.11 | 0 | 2023/9/12 |
| 0.0.10 | 0 | 2023/8/31 |
| 0.0.8 | 1 | 2025/11/19 |
| 0.0.7 | 1 | 2025/11/19 |
| 0.0.6 | 1 | 2025/11/19 |
| 0.0.5 | 1 | 2025/11/19 |
| 0.0.4 | 1 | 2025/11/19 |
| 0.0.3 | 1 | 2025/11/19 |
| 0.0.2 | 1 | 2025/11/19 |