I added the OCR nuget package to a .Net Framework 4.7.2 but during build, it printed this error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2106,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference “Aspose.OCR, Version=22.214.171.124, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=AMD64”, “AMD64”.
Also, when debugging it, there is a runtime error:
An unhandled exception of type ‘System.BadImageFormatException’ occurred in TestOCR.exe
Could not load file or assembly ‘Aspose.OCR, Version=126.96.36.199, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. An attempt was made to load a program with an incorrect format.
Please advise. Thanks