If you are beginning your journey with Senzing, please start with Senzing Quick Start guides.
The Senzing C# SDK provides the C# interface to the native Senzing SDK's.
This repository is dependent on the Senzing native shared library (.so
,
.dylib
or .dll
) that is part of the Senzing product and function without it.
While this SDK is being made available as open source the actual Senzing.Sdk.dll
file that you use should be obtained from Senzing product installation to
ensure that the C# code version matches the native library version.
-
Microsoft .NET for your platform: https://dotnet.microsoft.com/en-us/download
-
Senzing v4.0 or later (for running unit tests)
-
Set the
SENZING_DIR
environment variable:- Linux:
export SENZING_DIR=/opt/senzing/er
- macOS:
export SENZING_DIR=/Library/Senzing/er
- Windows:
set SENZING_DIR=C:\Senzing\er
- Linux:
-
Set your library path appropriately for Senzing libraries:
- Linux: Set the
LD_LIBRARY_PATH
:export LD_LIBRARY_PATH=/opt/senzing/er/lib:$LD_LIBRARY_PATH
- macOS: Set
DYLD_LIBRARY_PATH
:export DYLD_LIBRARY_PATH=/Library/Senzing/er/lib:/Library/Senzing/er/lib/macOS:$DYLD_LIBRARY_PATH
- Windows: Set
Path
:set Path=C:\Senzing\er\lib;C:\Senzing\er\lib\windows;%Path%
- Linux: Set the
-
Building with Debug:
dotnet build Senzing.Sdk
The DLL will be found in
Senzing.Sdk/bin/Debug/netstandard2.0/Senzing.Sdk.dll
-
Building with Release:
dotnet build -c Release Senzing.Sdk
The DLL will be found in
Senzing.Sdk/bin/Release/netstandard2.0/Senzing.Sdk.dll
-
Running unit tests:
dotnet test Senzing.Sdk.Tests
-
Verifying the code formatting:
dotnet format --verify-no-changes --verbosity diagnostic Senzing.Sdk dotnet format --verify-no-changes --verbosity diagnostic Senzing.Sdk.Tests
-
Generate documentation:
dotnet docfx docfx.json
The generated documentation will reside in
target/apidocs/_site/
-
Clean up build artfiacts:
dotnet clean Senzing.Sdk dotnet clean -c Release Senzing.Sdk dotnet clean Senzing.Sdk.Tests rm -rf target