saraff-9EB1047A4BEB4cef8506B29BA325BD5A / Saraff.Twain.NET

Saraff.Twain.NET is the skillful scanning component which allows you to control work of flatbed scanner, web and digital camera and any other TWAIN device from .NET environment. You can use this library in your programs written in any programming languages compatible with .NET technology.
GNU General Public License v3.0
102 stars 35 forks source link

Problem with Saraff.TwainX.NET package on Mac Catalyst 7.0 #109

Closed Zile1999 closed 11 months ago

Zile1999 commented 11 months ago

Description

I am trying to develop a MAUI application that should work on multiple platforms (Windows/MacOS) using .NET 7.0. I have encountered an issue when using the Saraff.TwainX.NET package for document scanning. The package works fine on Windows, but when the same process is applied to Mac Catalyst 7.0, package does not function.

The error occurring during the project build in VS Code is shown in the attacked image. Screenshot 2023-11-14 at 13 22 51

Additionally, on the provided link https://www.nuget.org/packages/Saraff.TwainX.NET#supportedframeworks-body-tab there is a Framework tab listing all compatible version, but Mac Catalyst 7.0 is not marked.

Is it possible to use this package on Mac Catalyst 7.0 at all? If not, are there any potential solutions or alternatives?

Versions in use: -MacOS: 13.0 -.NET MAUI 7.0 (Mac Catalyst 7.0)

saraff-9EB1047A4BEB4cef8506B29BA325BD5A commented 11 months ago

Hello, @Zile1999 In first, Saraff.Twain.NET 1.0.32.732 already includes Saraff.TwainX.NET (netstandard2.0)

In your case, the problem is not in the package, but in the installed software for working with TWAIN (.../SDKs/MacOSX.13.1.sdk/System/Library/Frameworks/TWAIN.framework/TWAIN.tbd for architecture x86_64) and apparently this does not correspond to your target platform