PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

resources DLL
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4058
Page 1 of 1

Author:  Jessica [ Fri Nov 15, 2019 7:14 pm ]
Post subject:  resources DLL

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?

Author:  TH-Soft [ Sat Nov 16, 2019 7:42 am ]
Post subject:  Re: resources DLL

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.

Author:  Jessica [ Sat Nov 16, 2019 7:43 pm ]
Post subject:  Re: resources DLL

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?

Author:  Thomas Hoevel [ Mon Nov 18, 2019 9:26 am ]
Post subject:  Re: resources DLL

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/