Org.Eclipse.CycloneDDS 11.1.0

dotnet add package Org.Eclipse.CycloneDDS --version 11.1.0
                    
NuGet\Install-Package Org.Eclipse.CycloneDDS -Version 11.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Org.Eclipse.CycloneDDS" Version="11.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Org.Eclipse.CycloneDDS" Version="11.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Org.Eclipse.CycloneDDS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Org.Eclipse.CycloneDDS --version 11.1.0
                    
#r "nuget: Org.Eclipse.CycloneDDS, 11.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Org.Eclipse.CycloneDDS@11.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Org.Eclipse.CycloneDDS&version=11.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Org.Eclipse.CycloneDDS&version=11.1.0
                    
Install as a Cake Tool

C# binding for Eclipse Cyclone DDS

Website Community

The official C# binding for Eclipse Cyclone DDS.

Quick Start

Add the package from your project's directory:

dotnet add package Org.Eclipse.CycloneDDS

The package includes the C# API, native runtimes and automatic C# type generation from IDL.

Then see the example and the docs to get started.

Example

This example generates C# types from IDL and exchanges a DDS sample in one process.

1. Create a project and reference the package

dotnet new console --name DdsHello --framework net9.0
cd DdsHello

Replace DdsHello.csproj with:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net9.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Org.Eclipse.CycloneDDS" Version="11.1.0" />
    <CycloneDDSIdl Include="Types/**/*.idl" />
  </ItemGroup>
</Project>

The package supplies both runtime and build support. Compiler tools stay in the NuGet cache and are not copied into the published application. Projects without CycloneDDSIdl items do not invoke the compiler. Keep the normal package reference so runtime dependencies can flow to projects consuming your library.

2. Describe your data in IDL

Create a Types directory and save this as Types/Hello.idl:

module Demo {
  @final struct Message {
    @key long id;
    string text;
  };
};

This generates the C# class Demo.Message. The IDL module determines its namespace, and @key identifies the field used to distinguish DDS instances.

3. Write normal C# application code

Replace Program.cs with this small publisher and subscriber in one process:

using Org.Eclipse.CycloneDDS;
using Demo;

using var participant = new DomainParticipant(0);
using var topic = participant.CreateTopic("Hello", Message.TypeSupport);
var qos = new Qos
{
    Reliability = new(ReliabilityKind.Reliable, Duration.FromSeconds(3))
};
using var reader = participant.CreateReader(topic, qos);
using var writer = participant.CreateWriter(topic, qos);
using var condition = reader.CreateReadCondition();
using var waitset = participant.CreateWaitSet();
waitset.Attach(condition);

writer.Write(new Message { id = 1, text = "Hello from C#!" });

if (waitset.Wait(Duration.FromSeconds(3)).Count == 0)
    throw new TimeoutException("No DDS sample received.");

foreach (var sample in reader.Take())
    if (sample.Info.ValidData)
        Console.WriteLine($"{sample.Data.id}: {sample.Data.text}");

Message.TypeSupport is generated alongside the data class and connects it to the DDS runtime. Dispose DDS entities with using; disposing a participant also disposes its children.

4. Build and run

dotnet build
dotnet run --no-build

Expected output:

1: Hello from C#!

The build restores the package, converts the IDLs to .cs files under obj/Debug/net9.0/cyclonedds, and compiles them with your application. There is no separate generator command or generated native library to manage. Edit your IDL and build again; included files and compiler-option changes are tracked. dotnet clean removes generated output.

Keep generated files under obj and out of source control. Include every IDL that defines types in CycloneDDSIdl, including definition files referenced by other IDLs, and use unique IDL basenames within a project.

More examples can be found under the folder examples.

Build the package from source

Requires .NET SDK 9, CMake 3.20+, a C11 compiler and Python 3.9+. Run from a clean checkout:

bash scripts/bootstrap-native.sh
cmake -S . -B build \
  -DCMAKE_PREFIX_PATH="$PWD/build/_deps/cyclonedds-install" \
  -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --parallel
ctest --test-dir build -C Release --output-on-failure
python3 scripts/pack-package.py \
  --prefix build/_deps/cyclonedds-install --build build

The NuGet package for your platform is written to artifacts/packages/. Its version comes from VERSION. To verify it:

python3 scripts/test-package.py \
  --package artifacts/packages/Org.Eclipse.CycloneDDS.11.1.0.nupkg \
  --build build

The bootstrap clones Cyclone DDS C master, or the matching C tag for a release. See the build guide for dependency selection and packaging and documentation build instructions to preview the manual.

Repository structure

📂 cyclonedds-csharp
├── 📁 .github/             # CI workflows and platform matrix
├── 📂 src/
│   ├── 📂 ddscsharp/       # C# API
│   │   └── 📁 tests/       # integration tests and upstream IDL fixtures
│   ├── 📂 native/          # native C bridge
│   │   └── 📁 tests/       # C interoperability peer
│   ├── 📁 idlcsharp/       # C# type generator for IDL
│   └── 📁 buildtools/      # NuGet and MSBuild integration
├── 📂 examples/            # runnable publisher/subscriber examples
│   ├── 📁 HelloWorld/      # keyed message exchange
│   ├── 📁 Throughput/      # throughput measurements
│   └── 📁 RoundTrip/       # latency measurements
├── 📁 cmake/               # CMake integration for type generation
├── 📁 scripts/             # dependency setup, builds and package verification
├── 📁 docs/                # Sphinx documentation (API guide and how-tos)
├── 📄 CMakeLists.txt       # native build and test configuration
├── 📄 CycloneDDS.sln       # .NET solution
├── 📄 VERSION             # package version
├── 📄 LICENSE             # repository licensing terms
└── 📄 README.md           # introduction and getting started
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.1.0 140 11/15/2026