I try using NAPS SDK in my project
sometimes our services deployed on Windows and it's working perfectly.
In Linux Ubuntu it's give us libsane.so.1 error.
Let me show u this
we reference these packages to our project
private async Task<List<string>> GetTwainScanners()
{
using var scanningContext = new ScanningContext(new GdiImageContext());
scanningContext.SetUpWin32Worker();
var controller = new ScanController(scanningContext);
var devices = (await controller.GetDeviceList(Driver.Twain));
return devices.Select(d => d.Name).ToList();
}
private async Task<List<string>> GetSaneScanners()
{
using var scanningContext = new ScanningContext(new GtkImageContext());
var controller = new ScanController(scanningContext);
var devices = (await controller.GetDeviceList(Driver.Sane));
return devices.Select(d => d.Name).ToList();
}
I try using NAPS SDK in my project sometimes our services deployed on Windows and it's working perfectly. In Linux Ubuntu it's give us libsane.so.1 error.
Let me show u this we reference these packages to our project
is there anything this missing?