PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
PDFSharp.MigraDoc.Standard not working with Xamarin Forms http://forum.pdfsharp.com/viewtopic.php?f=2&t=4070 |
Page 1 of 1 |
Author: | HanielaH [ Mon Dec 02, 2019 1:15 pm ] |
Post subject: | PDFSharp.MigraDoc.Standard not working with Xamarin Forms |
Hi, I have a .net standard library with PDFSharp.MigraDoc.Standard 1.51.9, and System.Drawing.Common 4.5.0. It works fine when using it from a Console App (.net Core). But when using it from a Xamarin Forms project, I receive the following exception (in Visual Studio 2017): System.TypeLoadException: Could not load type of field 'PdfSharp.Drawing.XFont:_gdiFontFamily' (14) due to: Could not resolve type with token 0100004f from typeref (expected class 'System.Drawing.FontFamily' in assembly 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51') assembly:System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 type:System.Drawing.FontFamily member:(null) If I run the same project in Visual Studio 2019, I receive Platform Not Supported exception. How can I make it work? Thanks, Haniela |
Author: | Thomas Hoevel [ Mon Dec 02, 2019 2:19 pm ] |
Post subject: | Re: PDFSharp.MigraDoc.Standard not working with Xamarin Form |
Hi! HanielaH wrote: I have a .net standard library with PDFSharp.MigraDoc.Standard 1.51.9 I suggest you ask the publishers of this derivative work for support.
|
Author: | HanielaH [ Mon Dec 02, 2019 2:50 pm ] |
Post subject: | Re: PDFSharp.MigraDoc.Standard not working with Xamarin Form |
Hi! Thanks for your reply. Yes, I tried that version because the official version is not supported in .net standard. It uses .net framework: Package 'PDFsharp-MigraDoc 1.50.5147' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project. Haniela |
Author: | HanielaH [ Tue Dec 03, 2019 9:06 am ] |
Post subject: | Re: PDFSharp.MigraDoc.Standard not working with Xamarin Form |
Hi, May I ask: Do you have plans to make PDFSharp & MigraDoc support .net Standard and Xamarin in the (near) future? Thank you, Haniela |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |