Run the .NET sample applications
Prerequisite: Running the .NET sample application requires Microsoft .NET 8 (or higher) SDK installed. For details, refer to the MSDN website.
Once code sample files are copied, do the following to compile and run the .NET sample applications:
-
Set the
LD_LIBRARY_PATH environment variable:
export LD_LIBRARY_PATH=/usr/local/lib/omnipage-csdk-lib64-2025.3 -
If you have .NET 6.0 SDK installed, change the TargetFramework version in
Samples.csproj:
<TargetFramework>net6.0</TargetFramework> -
Compile the application:
cd ~/sample/csharp dotnet build -c Release /p:Platform=x64 -
Run the application:
./bin/x64/Release/Samples -all -input ~/sample/input