This repo provides a TileDB API for C#. We have initially developed and tested these bindings against .NET Core 5 on macOS and Linux; Windows and .NET Foundation are also known to work.
- Documentation: https://tiledb-inc.github.io/TileDB-CSharp/
- Installation: https://docs.tiledb.com/installation
- Full documentation: https://docs.tiledb.com
- Source code: https://github.com/TileDB-Inc/TileDB
-
Docker
An Alpine-based Docker image is available on Dockerhub:
tiledb/tiledb-cs
- usage example:
docker run -ti tiledb/tiledb-cs:latest-alpine dotnet test test/
The image may also be built locally (see examples/docker):
docker build -f examples/docker .
-
NuGet
The multi-platform(windows,macos and linux) NuGet package is available starting from version 2.4.6.
dotnet add package TileDB.CSharp
Currently we test against .NET Core 5, and the following platforms are supported:
- Windows
- Linux
- macOS
git clone https://github.com/TileDB-Inc/TileDB-CSharp
cd TileDB-CSharp
cd cpp
mkdir build_win64
cd build_win64
cmake -G "Visual Studio 16 2019" -A x64 ..
cmake --build . --target install --config Release
cd cpp
mkdir build && cd build
cmake ..
cmake --build . --target install --config Release
cd TileDB.CSharp
dotnet build /p:Platform=x64 -c Release
cd benchmark
dotnet build /p:Platform=x64 -c Release
cd examples/TileDB.Example
dotnet build /p:Platform=x64 -c Release
cd examples/TileDB.Example/bin/x64/Release/net5.0
.\TileDB.Example.exe
cd examples/TileDB.Example/bin/x64/Release/net5.0
dotnet TileDB.Example.dll
To build your own project, add TileDB.CSharp
as a ProjectReference
in your csproj file:
<ItemGroup>
<ProjectReference Include="path/to/TileDB.CSharp\TileDB.CSharp.csproj"/>
</ItemGroup>
See sample usage in the tests/TileDBTests.csproj
project.