Unable to run minimal QuestPdf app on linux #781
-
I am trying to get a minimal program using QuestPDF to run in a linux docker container. It runs fine in Windows. I saw the "Going Production/Platform specific dependencies" page on the site (https://www.questpdf.com/going-production/platform-specific-dependencies.html) and included the two additional package references. Here is what I have: QuestPdfContainerTest.csproj:
Program.cs:
commands: I get this error: Please ensure the following NuGet packages are added to your primary/startup project and has matching versions:
For a detailed understanding, please examine the inner exception and consult the official SkiaSharp library documentation. The error message says I need to include two packages, but the .csproj references both of them. The error message also says something about an entry point named 'sk_compatpaint_new', but I can't find any info about this error. I have tried this on Ubuntu (Windows subsystem) and in a docker container running mcr.microsoft.com/dotnet/sdk:8.0 with the same results. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Have you followed the instructions in the error message? |
Beta Was this translation helpful? Give feedback.
Quite likely, the example code in the documentation shows outdated package versions. Please try installing both packages with the latest stable versions: