Closed kebox7 closed 3 months ago
It's not a bug, it's a feature. PDFsharp uses reflection and "full trimming" eliminates required code.
@ThomasHoevel, thanks for the answer.
For myself, I solved this issue as follows, I've marked the PdfSharp assembly as the root: <TrimmerRootAssembly Include="PdfSharp" />
. It's not the most beautiful solution, but it works.
Describe the bug
Trimming self-contained deployment fails with an exception if the trim mode is set to
<TrimMode>full</TrimMode>
. Stack trace:If the trim mode is set to
<TrimMode>partial</TrimMode>
then everything works fine.Code:
Additional context