Back to Fixed Bugs and Changes V5.1 PageBack

C# Release Notes

Contents


How to use the C# API

The API is currently compiled on the Windows platform using Microsoft's C# compiler. A port to Linux using the Mono framework has also been used by the opensource community, but that is not yet part of the commercially supported releases. However, it should be possible to run the Windows DLL on Mono, since Mono is binary compatible with Windows. The resulting deliverable is a library file called dcpssacsAssembly.dll, which you can find in the %OSPL_HOME%/bin directory alongside all the other OpenSplice DDS product libraries.

Since the DLL is a managed assembly, it is not found by Windows using the normal PATH environment variable. In order for the .NET framework to find a library, this library must either be copied to the same directory location as the executable that tries to load it, or the library must be copied into the Global Assembly Cache (GAC). For details about the global assembly cache, and how to manage it, see the Wikipedia Global Assembly Cache information.

The C# API is very similar to the other language bindings, with a couple of exceptions:

To generate a C# data model from your Topic IDL definitions, use idlpp in the following way:

Here, 'cs' represents the Csharp language, and -S represents the fact that there is no dependency on any ORB. See also 'idlpp -h'.

Current limitations of the C# API

C# API Reference Documentation



PrismTech TOP
Top