Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Bug with using .NET Standard 2.0 library with EPPlus.Core from Xamarin.Android app #42

Open
anovik opened this issue Jan 10, 2018 · 1 comment

Comments

@anovik
Copy link

anovik commented Jan 10, 2018

With the latest version of EPPlus.Core (1.5.4) I receive the following exception:

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?

My use case is the following: I have .NET Standard 2.0 library which I am using from Visual Studio 2017 Xamarin projects (Android and iOS).

After I switched to earlier version 1.5.2 (without System.Drawing, I suppose) the error has gone.

I can use this earlier version by now but I want you to consider this possible problem with System.Drawing.

Thanks.

@VahidN
Copy link
Owner

VahidN commented Mar 5, 2018

If you are using 1.5.4, update your System.Drawing.Common dependency. This official package has 3 updates now:
https://www.nuget.org/packages/System.Drawing.Common/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants