Aspose Words and .NET Core 2.0 error

@leftofcentre,

Thanks for your patience. This is not a bug. This is kind of limitation of SkiaSharp that is used by Aspose.Words .NET Standard version. SkiaSharp NuGet package does not contain native skia library for Linux, so it is required to add it manually.

  1. Create ne .NET Core Console Application
  2. Please install Aspose.Words for .NET through NuGet.
  3. Aspose.Words for .NET Standard uses SkiaSharp, which does not have native Skia library for Linux in its NuGet package yet. However, it is not a problem, because this native library is published with every SkiaSharp release on Github. Please note that Aspose.Words uses SkiaSharp 1.60.1, so download libHarfBuzzSharp.so file for this version. Once you download it, add it in your project and set “Copy to output directory”.
  4. Write code that uses Aspose.Words.
  5. Than open cmd line in folder where project file is and run this command:
  6. dotnet publish -r ubuntu.16.04-x64

    dotnet publish -r ubuntu.16.04-x64

  • Copy output ubuntu build folder to Ubuntu
  • Installing .NET Core 2.0 on Ubuntu (https://github.com/dotnet/docs/blob/master/docs/core/linux-prerequisites.md)
  • Open Ubuntu machine terminal (CLI) and Go to the project directory
  • Provide execute permissions:

    chmod 777 ./appname

  • Execute application

    ./appname

The issues you have found earlier (filed as WORDSNET-16749) have been fixed in this Aspose.Words for .NET 18.9 update and this Aspose.Words for Java 18.9 update.