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:

  1. Set the LD_LIBRARY_PATH environment variable:
    export LD_LIBRARY_PATH=/usr/local/lib/omnipage-csdk-lib64-2025.3
  2. If you have .NET 6.0 SDK installed, change the TargetFramework version in Samples.csproj:
    <TargetFramework>net6.0</TargetFramework>
  3. Compile the application:
    cd ~/sample/csharp
    dotnet build -c Release /p:Platform=x64
  4. Run the application:
    ./bin/x64/Release/Samples -all -input ~/sample/input