VahidN / EPPlus.Core

EPPlus.Core is an unofficial port of the EPPlus library to .NET Core
GNU Lesser General Public License v3.0
370 stars 93 forks source link

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

Open anovik opened 6 years ago

anovik commented 6 years ago

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 commented 6 years ago

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/