PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Dec 10, 2018 11:03 pm

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
PostPosted: Fri Oct 26, 2018 2:37 pm 
Offline

Joined: Fri Oct 26, 2018 12:11 am
Posts: 2
Ran into a bit of a problem using PDFSharpNetStandard2. I referenced the library from the solution level for my Android/iOS cross platform app. It said to install it for all the platforms which I did. I clicked on all three projects (xamarin forms app, android app, iOS app). It installed fine and I was able to develop against it.

However, when I went to compile the code it said that it was missing a reference to System.Drawing.Common 4.0.0.0 in the android solution. Looked in the solution could not find that reference. Thought it was missing so I went to remove PDFSharp and when I clicked the remove, the confirmation dialog asked my if I wanted to remove PDFSharp and System.Drawing.Common 4.5.0

I could not find System.Drawing.Common 4.0.0.0 anywhere.

When I searched online, one answer on the xamarin site said that I should close VS and remove the Packages folder for the solution and restart. I was unable to locate a packages folder in my solution directory so this option has been un-tested. I have deleted the packages folder for other project types (windows forms) in the past to resolve other types of conflicts so this would not likely be a case of PEBKAC but I suppose the possibility exists. I am open to all possibilities.

I have removed PDFSharpNetStandard2 and the problem resolves itself. (of course I have comment out my pdf code).

I have also tried to update the System.Drawing.Common to 4.5.1 (via nuget) and this still does not resolve the issue (not that I expected it would).

I have tried removing PDFSharpNetStandard2 and reinstalling it. When it installs it states that it is installing System.Drawing.Common 4.5.0.0.

All the other binaries are the latest, Xamarin forms 3.3 and the Xamarin.Android.Support is v4 and v7 for AppCompat, CardView, and MediaRouter.
The only other references I am using are newtonsoft (for json), signature pad, and plugin settings. Shortly I'll be adding CrossMessaging for email support, but as of this writing its not there.

If anyone has an idea as to what I could be doing incorrectly, I would be most grateful for any suggestions.

Cheers,
Wiz


Exact copy of Error in case it helps


Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Drawing.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'System.Drawing.Common.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver resolver, ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver resolver) JobInfo.Android


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 26, 2018 2:44 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 428
Location: CCAA
Hi!
wizengamot wrote:
Ran into a bit of a problem using PDFSharpNetStandard2.
Not an official library. I can't help you.

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


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 26, 2018 8:11 pm 
Offline

Joined: Fri Oct 26, 2018 12:11 am
Posts: 2
Thanks anyway. I posted because the Nuget package links back to your official site, so I naturally assumed it was an official package. Is someone linking back to you that shouldn't?


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 26, 2018 8:43 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 428
Location: CCAA
wizengamot wrote:
Is someone linking back to you that shouldn't?
They didn't ask.
I can link to Microsoft - but that won't make my file a Microsoft product, will it?

Their version number is higher than ours ...

wizengamot wrote:
I posted because the Nuget package links back to your official site, so I naturally assumed it was an official package.
You can contact the "package owners" on NuGet.
You can ask general PDFsharp questions here, but your question is specific to the ported version.

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


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 2 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