Closed lukbud14 closed 1 year ago
Hi 😀 Thank you for reaching out and for your kind words.
It seems that SkiaSharp dependencies are more and more problematic recently.
These two nugets should already by added implicitly (as transitive packages), but let's make sure they are properly added as explicit dependencies to your primary/compiled project:
HarfBuzzSharp.NativeAssets.Win32
Would you please test if you get the following files in the output artifact:
Hello,
I apologize for my previous incorrect response. The files you mentioned in the runtime\native folder are there. I have deleted my previous incorrect answer :).
However, I have found a solution. Initially, I had the QuestPDF reference only in the project library MyApp.Reports. Once I added the QuestPDF reference to the startup project MyApp as well, everything works.
@lukbud14 This is actually a crucial observation.
Do you have any suggestions on improving the exception message to emphasize that both listed nugets should be installed in the primary/main/startup project?
Hello,
First of all, I would like to thank you for this excellent NuGet package! It seems that PDF reports will no longer be a pain in the neck.
I tried creating a few test reports in a pure console application, and everything worked perfectly. There wasn't a single issue. Thanks to the experience gained from this testing, I decided to try implementing this library into an already completed .NET 6 WPF application, and I immediately encountered an issue at the very beginning. When creating a report, I am encountering the following exceptions.
I tried to find the missing DLL on nuget.org, installed packages, but it didn't help me in any way.
Has anyone addressed this here before? From what I've found in other issues, they were not related to WPF and Windows development. If I have created a duplicate topic unnecessarily, I apologize.
Dependencies - Packages
Something from csproj
Exceptions
Here are some of the selected DLLs that are published during the application build.