TH-Soft wrote:
toraxe wrote:
Is it a hard task to get the PDFSharp to work with .NET 8 ahead-of-time (AOT) compiled to native code?
I dunno. Didn't try yet.
I think PDFsharp/MigraDoc use reflection to some extent. Creating a size-optimized self-contained package will not work as .NET removes too much code in the process.
Maybe the same problem occurs with AOT. Try a variant that does not remove heuristically unused code if there is one.
Thank you TH-Soft for your reply, I got it working by setting the property <TrimMode>partial</TrimMode>.
As you saied it dident remove as much code but it works.
Thanks!