linux
.NET Core SDK 2.1.302
Container image: dotnet-21-rhel7
Aspose.Words: 22.4 (NuGet package)
use SkiaSharp.dll 1.68.1.1,error:
System.IO.FileLoadException: Could not load file or assembly 'SkiaSharp, Version=2.80.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'SkiaSharp, Version=2.80.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at QBTool.AnBiao.Core.WordFormatCheck.WordCheck(String[] filePath, FormatInfo formatInfo, Dictionary`2 CheckListResult, ErrorTableLog& error)
at QBTool.AnBiao.DQCommon.WebForm.anbiao_Eco.anbiaoWeb.GetCheckResult(String JsonObject)
update SkiaSharp.dll to version 2.80.1,error:
System.TypeInitializationException: The type initializer for 'Bm' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKObject' threw an exception. ---> System.InvalidOperationException: The version of the native libSkiaSharp library is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [80.0, 81.0).
at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Version minimum, Version current, Boolean throwIfIncompatible)
at SkiaSharp.SKObject..cctor()
--- End of inner exception stack trace ---
at SkiaSharp.SKBitmap..ctor()
at SkiaSharp.SKBitmap..ctor(SKImageInfo info, Int32 rowBytes)
at SkiaSharp.SKBitmap..ctor(Int32 width, Int32 height, Boolean isOpaque)
at Bm..cctor()
--- End of inner exception stack trace ---
at QBTool.AnBiao.Core.WordFormatCheck.WordCheck(String[] filePath, FormatInfo formatInfo, Dictionary`2 CheckListResult, ErrorTableLog& error)
at QBTool.AnBiao.DQCommon.WebForm.anbiao_Eco.anbiaoWeb.GetCheckResult(String JsonObject)