Using the SDK in a new project
- Install Visual Studio 2019
- Unzip Binah_Windows_SDK_[version].zip
- Create a new project in Visual Studio. Can be of type (WPF App, Universal Windows (UWP), Console App). Can be for Platform .NET Core (3.1, 3,0) or .NET Framework (4.7.2 - 4.5).
Select the configuration (Debug\Release) and the platform (x64 Recommended)
- Open the Reference Manager dialog (In a .NET Framework project right-click References=>Add Reference…, In a .NET Core project right click Dependencies=>Add Project Reference…)
- In the dialog, click Browse and navigate to the SDK folder and select the Binah.WindowsSdk.Core.dll Assembly and add it.
- If it is a .net Framework project in the dialog click on Assemblies and select System.Drawing Assembly and add it. (Not needed if it is a .NET Core project)
- In the Solution Explorer right-click on the project and click Manage Nuget Packages…
- Browse for Newtonsoft.Json package and install it.
- If not a UWP project also Browse for Microsoft.Windows.SDK.Contracts package and install it.
- Create a HealthMonitorManager and use it to create a session. A detailed example of this can be found in the common flow section of the interface document.
- Build the solution. Make sure in the output the build succeeded with no errors.
- Please note that when building the project the .net Assemblies of the SDK will be copied automatically to the output folder. The native DLLs however will not be copied automatically and need to be copied to the output folder before the project can run.
The DLLs that need to be copied are (Binah.WindowsSdk.Algo.Interop.dll, libcrypto-1_1-x64.dll, opencv_core410.dll, opencv_dnn410.dll, opencv_imgproc410.dll, and vcruntime140_1.dll)
- Run the project.