PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
MissingMethodException PdfSharp.Drawing.XColor.op_Implicit https://forum.pdfsharp.net/viewtopic.php?f=2&t=3947 |
Page 1 of 1 |
Author: | hfriedr [ Tue Apr 23, 2019 12:28 pm ] |
Post subject: | MissingMethodException PdfSharp.Drawing.XColor.op_Implicit |
Hello, what could have gone wrong if I get a System.MissingMethodException: Method not found: PdfSharp.Drawing.XColor PdfSharp.Drawing.XColor.op_Implicit(System.Drawing.Color)? I am "implicitly" using PdfSharp from SharpDevelop Reports (PdfSharp and PdfSharp-WPF nuget packages, Version 1.50.5147; Irony and Irony.interpreter nguet packages, Version 1.1.0; ICSharpCode.Reporting.dll, file version 5.0.0.4755; Visual Studio Community 2019, Version 16.0.1). Any possible version mismatch here? |
Author: | Thomas Hoevel [ Tue Apr 23, 2019 12:51 pm ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
Hi! hfriedr wrote: PdfSharp and PdfSharp-WPF nuget packages, Version 1.50.5147 Why two PDFsharp packages?Have you tried Visual Studio 2017? |
Author: | hfriedr [ Tue Apr 23, 2019 1:09 pm ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
Hello Thomas, Thanks for your reply. The two PDFSharp packages were there basically because I'm not sure exactly what I need, but it looks like SharpDevelop Reports seems to expect the PDFSharp package in particular. Will try Visual Studio 2017. Best regards, Holger Friedrich |
Author: | hfriedr [ Tue Apr 23, 2019 1:32 pm ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
Using Visual Studio 2017 instead of Visual Studio 2019 does not change the error message. |
Author: | Thomas Hoevel [ Tue Apr 23, 2019 3:33 pm ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
hfriedr wrote: Using Visual Studio 2017 instead of Visual Studio 2019 does not change the error message. Is there more in the error message than you are showing here?Maybe you have to use the PdfSharp-GDI NuGet package instead of the two you are using. Maybe you have to go back to PDFsharp 1.32. |
Author: | hfriedr [ Wed Apr 24, 2019 6:51 am ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
Thanks for your reply. Thomas Hoevel wrote: Maybe you have to use the PdfSharp-GDI NuGet package instead of the two you are using. This would seem plausible as the source code does have an implicit conversion operator from Color to XColor, but it is inside an #ifdef GDI. However, SharpDevelop Reporting seems to want a PDFSharp package and apparently ignores PDFSharp-gdi. Maybe I have to build my own PDFSharp DLL from source? |
Author: | hfriedr [ Wed Apr 24, 2019 7:22 am ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
Thomas Hoevel wrote: Maybe you have to go back to PDFsharp 1.32. Yes, it seems to work with the PdfSharp 1.32 nuget package. Thanks for your help. |
Author: | Thomas Hoevel [ Wed Apr 24, 2019 8:59 am ] |
Post subject: | Re: MissingMethodException PdfSharp.Drawing.XColor.op_Implic |
There was a breaking change with respect to naming conventions and "PDFsharp-GDI" is the successor of the old "PDFsharp" NuGet package. Mystery solved. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |