We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.OCR NuGet Package References

There appears to be errors in the references in the OCR Package on NuGet.
It doesn’t appear to reference the same versions as the Microsoft.ML.OnnxRuntime package.

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Found conflicts between different versions of “System.Memory” that could not be resolved.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: There was a conflict between “System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51” and “System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: “System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51” was chosen because it was primary and “System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51” was not.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: References which depend on “System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51” [packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll].
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Project file item includes which caused reference “packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: References which depend on “System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51” [].
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: packages\Aspose.OCR.22.8.0\lib\netstandard2.0\Aspose.OCR.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Project file item includes which caused reference “packages\Aspose.OCR.22.8.0\lib\netstandard2.0\Aspose.OCR.dll”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Aspose.OCR, Version=22.8.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: packages\Microsoft.ML.OnnxRuntime.Managed.1.12.1\lib\netstandard2.0\Microsoft.ML.OnnxRuntime.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Project file item includes which caused reference “packages\Microsoft.ML.OnnxRuntime.Managed.1.12.1\lib\netstandard2.0\Microsoft.ML.OnnxRuntime.dll”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Microsoft.ML.OnnxRuntime, Version=0.0.0.0, Culture=neutral, PublicKeyToken=f27f157f0a5b7bb6, processorArchitecture=MSIL
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Aspose.OCR, Version=22.8.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Found conflicts between different versions of “System.Runtime.CompilerServices.Unsafe” that could not be resolved.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: There was a conflict between “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” and “System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” was chosen because it was primary and “System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” was not.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: References which depend on “System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” [packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll].
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Project file item includes which caused reference “packages\System.Runtime.CompilerServices.Unsafe.4.5.2\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: References which depend on “System.Runtime.CompilerServices.Unsafe, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” [].
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: Project file item includes which caused reference “packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll”.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2182,5): warning MSB3277: System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL

@Mitsobar

Would you please make sure that you are trying to install the package in an application targeting >4.6.2 .NET Framework? In case you still face any issues, please let us know. Also, please make sure to install the latest version of the API.

I rebuilt it using 4.6.1. Now is is copying ALL of the referenced DLLs locally in the release folder.

03/19/2022 03:05 AM 131,984 Microsoft.ML.OnnxRuntime.dll
03/19/2022 03:03 AM 60,332 Microsoft.ML.OnnxRuntime.pdb
03/15/2021 10:15 AM 21,216 Microsoft.Win32.Primitives.dll
03/15/2021 10:15 AM 98,616 netstandard.dll
03/19/2022 12:35 AM 20,904 onnxruntime_providers_shared.dll
03/15/2021 10:15 AM 21,176 System.AppContext.dll
07/19/2017 10:01 AM 27,992 System.Buffers.dll
07/19/2017 10:01 AM 3,195 System.Buffers.xml
03/15/2021 10:15 AM 21,224 System.Collections.Concurrent.dll
03/15/2021 10:15 AM 21,696 System.Collections.dll
03/15/2021 10:15 AM 21,224 System.Collections.NonGeneric.dll
03/15/2021 10:15 AM 21,224 System.Collections.Specialized.dll
03/15/2021 10:15 AM 21,192 System.ComponentModel.dll
03/15/2021 10:15 AM 21,768 System.ComponentModel.EventBasedAsync.dll
03/15/2021 10:15 AM 21,752 System.ComponentModel.Primitives.dll
03/15/2021 10:15 AM 22,784 System.ComponentModel.TypeConverter.dll
03/15/2021 10:15 AM 21,160 System.Console.dll
03/15/2021 10:15 AM 154,448 System.Data.Common.dll
03/15/2021 10:15 AM 21,736 System.Diagnostics.Contracts.dll
03/15/2021 10:15 AM 21,208 System.Diagnostics.Debug.dll
03/15/2021 10:15 AM 21,248 System.Diagnostics.FileVersionInfo.dll
03/15/2021 10:15 AM 21,728 System.Diagnostics.Process.dll
03/15/2021 10:15 AM 23,936 System.Diagnostics.StackTrace.dll
03/15/2021 10:15 AM 21,280 System.Diagnostics.TextWriterTraceListener.dll
03/15/2021 10:15 AM 21,208 System.Diagnostics.Tools.dll
03/15/2021 10:15 AM 21,744 System.Diagnostics.TraceSource.dll
03/15/2021 10:15 AM 31,608 System.Diagnostics.Tracing.dll
03/15/2021 10:15 AM 21,208 System.Drawing.Primitives.dll
03/15/2021 10:15 AM 22,224 System.Dynamic.Runtime.dll
03/15/2021 10:15 AM 21,744 System.Globalization.Calendars.dll
03/15/2021 10:15 AM 21,192 System.Globalization.dll
03/15/2021 10:15 AM 25,992 System.Globalization.Extensions.dll
03/15/2021 10:15 AM 110,944 System.IO.Compression.dll
03/15/2021 10:15 AM 21,224 System.IO.Compression.ZipFile.dll
03/15/2021 10:15 AM 21,144 System.IO.dll
03/15/2021 10:15 AM 21,192 System.IO.FileSystem.dll
03/15/2021 10:15 AM 21,232 System.IO.FileSystem.DriveInfo.dll
03/15/2021 10:15 AM 21,232 System.IO.FileSystem.Primitives.dll
03/15/2021 10:15 AM 21,224 System.IO.FileSystem.Watcher.dll
03/15/2021 10:15 AM 21,208 System.IO.IsolatedStorage.dll
03/15/2021 10:15 AM 21,216 System.IO.MemoryMappedFiles.dll
03/15/2021 10:15 AM 21,168 System.IO.Pipes.dll
03/15/2021 10:15 AM 21,232 System.IO.UnmanagedMemoryStream.dll
03/15/2021 10:15 AM 21,152 System.Linq.dll
03/15/2021 10:15 AM 22,224 System.Linq.Expressions.dll
03/15/2021 10:15 AM 21,192 System.Linq.Parallel.dll
03/15/2021 10:15 AM 21,192 System.Linq.Queryable.dll
04/17/2019 04:24 PM 148,760 System.Memory.dll
04/17/2019 04:24 PM 13,950 System.Memory.xml
03/15/2021 10:15 AM 198,472 System.Net.Http.dll
03/15/2021 10:15 AM 21,208 System.Net.NameResolution.dll
03/15/2021 10:15 AM 22,248 System.Net.NetworkInformation.dll
03/15/2021 10:15 AM 21,168 System.Net.Ping.dll
03/15/2021 10:15 AM 22,216 System.Net.Primitives.dll
03/15/2021 10:15 AM 21,184 System.Net.Requests.dll
03/15/2021 10:15 AM 21,696 System.Net.Security.dll
03/15/2021 10:15 AM 30,544 System.Net.Sockets.dll
03/15/2021 10:15 AM 21,232 System.Net.WebHeaderCollection.dll
03/15/2021 10:15 AM 21,224 System.Net.WebSockets.Client.dll
03/15/2021 10:15 AM 21,192 System.Net.WebSockets.dll
07/19/2017 10:01 AM 115,936 System.Numerics.Vectors.dll
07/19/2017 10:01 AM 183,543 System.Numerics.Vectors.xml
03/15/2021 10:15 AM 21,696 System.ObjectModel.dll
03/15/2021 10:15 AM 22,200 System.Reflection.dll
03/15/2021 10:15 AM 21,224 System.Reflection.Extensions.dll
03/15/2021 10:15 AM 21,736 System.Reflection.Primitives.dll
03/15/2021 10:15 AM 21,200 System.Resources.Reader.dll
03/15/2021 10:15 AM 21,232 System.Resources.ResourceManager.dll
03/15/2021 10:15 AM 21,200 System.Resources.Writer.dll
09/18/2018 07:38 PM 23,600 System.Runtime.CompilerServices.Unsafe.dll
09/18/2018 07:38 PM 14,080 System.Runtime.CompilerServices.Unsafe.xml
03/15/2021 10:15 AM 21,784 System.Runtime.CompilerServices.VisualC.dll
03/15/2021 10:15 AM 29,360 System.Runtime.dll
03/15/2021 10:15 AM 21,720 System.Runtime.Extensions.dll
03/15/2021 10:15 AM 21,200 System.Runtime.Handles.dll
03/15/2021 10:15 AM 24,296 System.Runtime.InteropServices.dll
03/15/2021 10:15 AM 28,624 System.Runtime.InteropServices.RuntimeInformation.dll
03/15/2021 10:15 AM 21,200 System.Runtime.Numerics.dll
03/15/2021 10:15 AM 21,264 System.Runtime.Serialization.Formatters.dll
03/15/2021 10:15 AM 21,240 System.Runtime.Serialization.Json.dll
03/15/2021 10:15 AM 27,048 System.Runtime.Serialization.Primitives.dll
03/15/2021 10:15 AM 24,816 System.Runtime.Serialization.Xml.dll
03/15/2021 10:15 AM 21,200 System.Security.Claims.dll
03/15/2021 10:15 AM 47,016 System.Security.Cryptography.Algorithms.dll
03/15/2021 10:15 AM 21,240 System.Security.Cryptography.Csp.dll
03/15/2021 10:15 AM 21,256 System.Security.Cryptography.Encoding.dll
03/15/2021 10:15 AM 21,784 System.Security.Cryptography.Primitives.dll
03/15/2021 10:15 AM 22,832 System.Security.Cryptography.X509Certificates.dll
03/15/2021 10:15 AM 21,208 System.Security.Principal.dll
03/15/2021 10:15 AM 22,392 System.Security.SecureString.dll
03/15/2021 10:15 AM 21,696 System.Text.Encoding.dll
03/15/2021 10:15 AM 21,232 System.Text.Encoding.Extensions.dll
03/15/2021 10:15 AM 21,232 System.Text.RegularExpressions.dll
03/15/2021 10:15 AM 22,192 System.Threading.dll
03/15/2021 10:15 AM 37,752 System.Threading.Overlapped.dll
03/15/2021 10:15 AM 22,224 System.Threading.Tasks.dll
03/15/2021 10:15 AM 21,232 System.Threading.Tasks.Parallel.dll
03/15/2021 10:15 AM 21,200 System.Threading.Thread.dll
03/15/2021 10:15 AM 21,216 System.Threading.ThreadPool.dll
03/15/2021 10:15 AM 21,200 System.Threading.Timer.dll
03/15/2021 10:15 AM 79,176 System.ValueTuple.dll
03/15/2021 10:15 AM 21,712 System.Xml.ReaderWriter.dll
03/15/2021 10:15 AM 21,696 System.Xml.XDocument.dll
03/15/2021 10:15 AM 21,712 System.Xml.XmlDocument.dll
03/15/2021 10:15 AM 21,712 System.Xml.XmlSerializer.dll
03/15/2021 10:15 AM 21,176 System.Xml.XPath.dll
03/15/2021 10:15 AM 22,904 System.Xml.XPath.XDocument.dll

@Mitsobar

Sorry for the confusion but we meant greater than 4.6.2.

I was originally using 4.8.

@Mitsobar

We have tested the case in our environment but did not face any issue. Would you please check again in a separate console application to see what actual dependency is creating issue in your main project?

image.png (85.4 KB)