linux 容器中的 ABCPdf

ABCPdf in linux container

我想在 Linux 容器上部署一个依赖于 ABCpdf (.net core) 的 pdf 生成器。 docker 图像文件将成功构建但是当我们 运行 容器时我有以下异常

知道我们如何解决这个问题吗?

abcpdf 文档 states:

There are variants of ABCpdf for both .NET Core and .NET Standard.

These variants are currently for Windows only and there are a few features which are disabled because they are not supported by the .NET Core runtime.

因此您可以 运行 它在 Windows 容器中而不是 Linux 容器中。