I've tried to get XPO.Core to work with Xamarin and installed DevExpress.Xpo and Microsoft.Data.Sqlite to my Xamrin.Forms and Xamarin.Android project.
After that I can't compile any more. The following error occurs:[C#]
Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'System.Drawing.Common, Version=22.214.171.124, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Perhaps it doesn't exist in the Mono for Android profile? Filename: "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) XpoCoreTestApp.Android
If I uninstall both NuGet packages it compiles and works as expected. Do I miss anything?
This behavior is caused by an issue in Microsoft products and we cannot avoid it on our side. My colleague already reported it at https://github.com/mono/mono/issues/8089#issuecomment-387346543
If you find this important, I would kindly ask you leave a comment there to speed up the fix. In the meantime, we have found that one can manually add the System.Drawing.Common.dll assembly reference from the packages...\netstandard2.0 folder to bypass this behavior in certain scenarios. For a working Xamarin + XPO app, check out our demo by the link I provided.