EPPlus.Core
EPPlus.Core copied to clipboard
Bug with using .NET Standard 2.0 library with EPPlus.Core from Xamarin.Android app
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.
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/