C# · Installation

Installation

3.0.0-rc.1 · 4c3e5023

dotnet add package Cloud.Unum.USearch

The package targets net10.0, the long-term-support release supported through November 2028. Building from source compiles the C library first, then places it where the package looks for its native assets:

cmake --preset relwithdebinfo -D USEARCH_BUILD_SHARED=1
cmake --build --preset relwithdebinfo
mkdir -p csharp/lib/runtimes/osx-arm64/native                   # Or linux-x64 with the .so
cp build_relwithdebinfo/libusearch_shared.dylib csharp/lib/runtimes/osx-arm64/native
cd csharp && dotnet test