when publishing a single .exe in .net 3 I'm getting this error when I try to instantiate the engine
Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral
var engine = new TesseractEngine(keyDir, item.lang, EngineMode.Default); works fine when i'm debugging, or if I click the non self contained exe file.
I don't know if setting the custom search willsolve this. still not working though
var assembly = Assembly.GetEntryAssembly();
var loc = assembly.Location;
var name = $"{assembly.GetName().Name}.dll";
loc = loc.Replace(name, "");
TesseractEnviornment.CustomSearchPath = loc;
Taylor Funk
unread,
Jul 22, 2021, 10:39:55 AM7/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tesseract-ocr
solved it. needed to exclude in the csproj the netstandard from the trim optimization