Current filter:
                                You should refresh the page.
                                  • Hi,

                                    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=4.0.0.0, 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?

                                    Greetings,
                                    Daniel
                                • Daniel Fischer 1 06.08.2018
                                  Hi,

                                  after further investigation there seems to be a problem with the new csproj way of handling NuGet packages via PackageReference.
                                  I've used the newly VS2017 packages.config to PackageReference migration tool and converted your demo project on GitHub. After the successful migration I'm getting the same error. A normal clone with package.config works as expected.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Daniel,

                                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.