Release link error

Issue #65 resolved
Jeremy Kolb created an issue

I'm seeing the following in release builds only:

5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1292,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly. 5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1292,5): error MSB4018: Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'System.Int32 SQLite.Net.SQLiteConnection::InsertAll(System.Collections.IEnumerable)' (defined in 'SQLiteNetExtensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') from 'SQLiteNetExtensions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve System.Int32 SQLite.Net.SQLiteConnection::InsertAll(System.Collections.IEnumerable) 5>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1292,5): error MSB4018: at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)

Comments (5)

  1. Guillermo GutiƩrrez

    Can you clean all targets and delete bin and obj folders and see if it still happens?

  2. Jeremy Kolb reporter

    I downgraded SQLite.Net-PCL and it worked again. I'm not sure why I was only hitting this in release. My guess is that since the "new() -> class" change happened we need to recompile against the new lib.

  3. JM Alfonsi

    I don't think it's related to Release. I have the same issue since nuget update to SQLite.Net-PCL 3.0 when building in DEBUG.

  4. Log in to comment