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
<PackageReference Include="xiAPI.NET.CrossPlatform" Version="1.1.0" />
<PackageVersion Include="xiAPI.NET.CrossPlatform" Version="1.1.0" />
<PackageReference Include="xiAPI.NET.CrossPlatform" />
paket add xiAPI.NET.CrossPlatform --version 1.1.0
#r "nuget: xiAPI.NET.CrossPlatform, 1.1.0"
#:package xiAPI.NET.CrossPlatform@1.1.0
#addin nuget:?package=xiAPI.NET.CrossPlatform&version=1.1.0
#tool nuget:?package=xiAPI.NET.CrossPlatform&version=1.1.0
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.dllname also works on Linux/macOS (maps tolibm3api.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:
- System/default search (
ldconfigpaths on Linux, DYLD on macOS) - 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 | Versions 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. |
-
.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.
Added extra search options for Mac OS