简体   繁体   中英

C# - Class Library - TESSERACT - Failed to find library "leptonica-1.80.0.dll" for platform x86

I'm writing an activity component to include as nuget package in UiPath.

Here structure:

└─lib
  └─net
    ├─(dll developed)
    ├─Tesseract.dll
    ├─x64
    │ ├─leptonica-1.80.0.dll
    │ └─tesseract41.dll
    ├─x86
    │ ├─leptonica-1.80.0.dll
    │ └─tesseract41.dll
    └─tessdata
      ├─osd.traineddata
      ├─ita.traineddata
      └─oci.traineddata

With a test app on visual studio, library works.

When I try to run it from UiPath I receive below message, that I collected using visual studio debugger.

Failed to find library "leptonica-1.80.0.dll" for platform x86.

Library has been build with "Any" and "x86" build target, no changes on structure (as output of builder) and no change to error.

Has someone suggestion to solve it?

Thanks in advance.

Try to add "leptonica-1.80.0.dll" library into project folder and uipath studio dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM