Mindee .NET SDK 4.8.2 – Microsoft.Extensions.Logging.Abstractions dependency conflict
Hi Mindee Support Team,
We are using Mindee .NET SDK version 4.8.2 and are facing a runtime dependency issue.
The following error occurs while processing Invoice OCR using API version v2:
Could not load file or assembly 'Microsoft.Extensions.Logging.Abstractions, Version=6.0.0.0'... The located assembly's manifest definition does not match the assembly reference. (0x80131040)
We have added the required dependency DLLs to the project. When we reference Microsoft.Extensions.Logging.Abstractions version 6.0.0.0, the project indicates that Mindee 4.8.2 requires a higher version.
Could you please confirm which exact version of Microsoft.Extensions.Logging.Abstractions is compatible with Mindee .NET SDK 4.8.2 and advise how this dependency conflict should be resolved?
Thanks,
Kousalya
Log in to comment and vote
Comments1
Ianaré Sévi
Oct 8
Hi Kousalya,
It depends on your .NET version:
For .NET 4.7, 4.8 => 6.0.4
For .NET 6.0 and above => 10.0.2
Full details here:
https://github.com/mindee/mindee-api-dotnet/blob/v4.8.2/Directory.Build.props
Let me know if that resolves the issue for you.
Thanks