xiAPI.NET.CrossPlatform 1.1.0

dotnet add package xiAPI.NET.CrossPlatform --version 1.1.0
                    
NuGet\Install-Package xiAPI.NET.CrossPlatform -Version 1.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="xiAPI.NET.CrossPlatform" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xiAPI.NET.CrossPlatform" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="xiAPI.NET.CrossPlatform" />
                    
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 xiAPI.NET.CrossPlatform --version 1.1.0
                    
#r "nuget: xiAPI.NET.CrossPlatform, 1.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 xiAPI.NET.CrossPlatform@1.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=xiAPI.NET.CrossPlatform&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=xiAPI.NET.CrossPlatform&version=1.1.0
                    
Install as a Cake Tool

xiApi.NET.CrossPlatform

A drop-in replacement package that works as XIMEA’s xiAPI .NET but works smoothly across platforms and target frameworks.

  • ✅ Adds a cross-platform unmanaged resolver so XIMEA’s hard-coded xiapi64.dll name also works on Linux/macOS (maps to libm3api.so / libm3api.dylib)
  • ✅ Zero code changes in your app — just install the package

Why? XIMEA’s .NET wrapper P/Invokes xiapi64.dll. That name is fine on Windows, but not on Linux/macOS where the native library is named differently. This package patches that gap.


Install

dotnet add package xiApi.NET.CrossPlatform

Or via NuGet Package Manager.

The package replaces XIMEA’s managed wrapper. You don’t need to add a separate reference to xiApi.NETX64.dll.


Usage

No need to setup something, just use XIMEA’s API as usual:

using xiApi;

unsafe
{
    int num;
    var err = ximeaApi.xiGetNumberDevices(&num);
    if (err != 0) throw new InvalidOperationException($"xiGetNumberDevices error {err}");
}

Deployment notes

Native library location

On Windows, the vendor name matches, so the OS loader finds xiapi64.dll normally (either from PATH or app folder).

On Linux/macOS, make sure the native library from the XIMEA SDK can be found. The resolver tries, in order:

  1. System/default search (ldconfig paths on Linux, DYLD on macOS)
  2. App directory (AppContext.BaseDirectory)

License

  • Resolver code: MIT (this package).
  • XIMEA managed/native libraries: subject to XIMEA’s licenses. Ensure you have rights to redistribute/use them in your environment.
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  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. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on xiAPI.NET.CrossPlatform:

Package Downloads
Ximea.NET.ObjectOriented

an OO implementation of the Ximea Camera.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 359 10/14/2025
1.0.0 227 9/29/2025

Added extra search options for Mac OS