PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Dec 08, 2019 10:10 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: resources DLL
PostPosted: Fri Nov 15, 2019 7:14 pm 
Offline

Joined: Sun Nov 03, 2019 7:51 pm
Posts: 37
In my visual studio project there are 5 DLL files but also 5 DLL files containing the word "resources":

for example: MigraDoc.DocumentObjectModel-wpf.resources.dll

Do I have to copy those DLL files to the same folder as my EXE file too?
What are those files used for?


Top
 Profile  
Reply with quote  
 Post subject: Re: resources DLL
PostPosted: Sat Nov 16, 2019 7:42 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 508
Location: CCAA
Jessica wrote:
What are those files used for?
What are their names?

Some DLLs contain error messages. PDFsharp and MigraDoc include error messages in English and German, but it is possible to add more languages.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
 Post subject: Re: resources DLL
PostPosted: Sat Nov 16, 2019 7:43 pm 
Offline

Joined: Sun Nov 03, 2019 7:51 pm
Posts: 37
The file names are:

MigraDoc.DocumentObjectModel-wpf.resources

MigraDoc.Rendering-wpf.resources

MigraDoc.RtfRendering-wpf.resources

PdfSharp.Charting-wpf.resources

PdfSharp-wpf.resources

What are the "resources" DLL files uses for? Do I need to distribute them with my EXE file too or do I only need the same file names without "resources" in their name?


Top
 Profile  
Reply with quote  
 Post subject: Re: resources DLL
PostPosted: Mon Nov 18, 2019 9:26 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3012
Location: Cologne, Germany
I'm not sure what happens when an exception occurs and the resource DLLs are not there. In the worst case your users will see a cryptic exception text because the plain text could not be loaded from the DLL.
Even the DLLs from the DE folder will be loaded eventually.
You do not have to include any RtfRendering DLLs if your program does not offer RTF creation.

If you drop any DLL from your distribution, test thoroughly if everything works. The Resources DLLs are small. Not much gained if you take a risk there.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group