Questions tagged [xamarin-linker]

The Xamarin Linker is used to reduce the size of the apps, it has three options in Visual Studio:

  • Don't Link (None in Visual Studio)
  • Link SDK Assemblies (Sdk Assemblies Only)
  • Link All Assemblies (Sdk and User Assemblies)

More info: https://learn.microsoft.com/en-us/xamarin/android/deploy-test/linker

44 questions
1
vote
2 answers

Xamarin.Android Linking problem - Error processing method System.String

I have a Xamarin Android app that compiles and runs fine in DEBUG mode but won't compile in RELEASE mode. The error that I'm getting is: Mono.Linker.MarkException: Error processing method: 'System.String…
1
vote
0 answers

Xamarin iOS binding library (Swift) build error due linker issues

I have Xamarin.iOS project and I'm trying to use Vivalnk sdk (a Swift 5 framework) in it. I'm attempting to walk through this guide: https://learn.microsoft.com/en-us/xamarin/ios/platform/binding-swift/walkthrough Note that I've ignored building…
Yaser Moradi
  • 3,267
  • 3
  • 24
  • 50
1
vote
0 answers

Xamarin Android Linker - Removes Firebase messaging classes

I have a Xamarin Forms app with a corresponding Xamarin Android project. I use Azure Notification Hub for managing pushes to the app and FCM for the Android piece. The app has been functional for a while in the above setup. Everything works great…
1
vote
1 answer

Xamarin: Fix linker errors (with FFImageLoading and SDWebImage)

I'm trying to integrate some Native Forms pages to an existing Xamarin.iOS application so that those pages can be shared between several platforms. I would like to use Xamarin.FFImageLoading for images on those Native Forms pages. This is normally…
1
vote
1 answer

Xamarin Linker: Default constructor not found for type MvvmCross.Platform.IoC.MvxPropertyInjector

This is the same question as this, but the solution is not working for me. I have a LinkerPleaseInclude.cs file with the following: public void Include(MvvmCross.Platform.IoC.MvxPropertyInjector injector) { injector = new…
1
vote
2 answers

Xamarin linker removing all constructors but preserving instance methods?

First, a general note, what Xamarin calls their "linker" is actually more of a "dead code remover". It is supposed to prevent uncallable code from making it into the compiled app. I have a type in my app. When I use reflection to get its…
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
1
vote
1 answer

Ignore Assemblies In Xamarin.Android Linker

I'm getting an error when trying to build app with Link SDK Assemblies Only(everything works on Don't Link) /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Error executing task…
arsena
  • 1,935
  • 19
  • 36
1
vote
2 answers

Linking libz.dylib and libsqlite3.dylib in Xamarin iOS Project

I created a Xamarin iOS binding project that requires the following frameworks: SystemConfiguration.framework CoreTelephony.framework libz.dylib libsqlite3.dylib I added the following line in my iOS binding project to the linkwith.cs…
kschins
  • 1,054
  • 1
  • 13
  • 26
1
vote
0 answers

Issue with Haneke component for Xamarin, possibly linker issue

     Haneke component for Xamarin seems to be quite solid, nevertheless I'm having strange issue with it on devices though on sim all works as expected. The app compiles and builds ok. But when launched on device when imageView.SetImage(imageUrl);…
vertique
  • 69
  • 1
  • 12
1
vote
2 answers

Xamarin Linker stipping out static class properties?

In VS 2013, Xamarin Forms. Our Android & IOS app has a static class: public static class CacheKeys { public static string RememberMeEmail = "RememberMeEmail"; public static string RememberMeSwitch = "RememberMeSwitch"; } This class is…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
1
vote
0 answers

Linker failed for xamarin.android project with xamarin.insights integrated

I have Xamarin.Android app which leverage PCL support and Xamarin.Insights component. Unfortunately in the release configuration with the linker option SDK Assemblies it wouldn't build. If I disable the linker everything works just fine but I need…
Mando
  • 11,414
  • 17
  • 86
  • 167
1
vote
0 answers

Parse.Android.dll error when using linker or release mode - Xamarin app

When using the Parse.Android.dll with the Xamarin linker (Linking SDK's only) in Release mode I get the following error from a query: Unable to evaluate the expression: "createdAt" The query is simply: var query = from i in…
1
vote
2 answers

Xamarin Android - Linker and ServiceStack.Text

I'm having trouble getting an application to work with full linking. This is my setup (my assembly names changed): Mono for Android 4.4.54 An Android application (MyApp) A platform-agnostic library (MyLib) I'm attempting to deserialize a type…
manadart
  • 1,750
  • 11
  • 13
1
vote
1 answer

Problems with Linker in Xamarin Android 4.6

Yesterday I've downloaded the new version of Xamarin.Android which was 4.6.2. When I tried to build my project which correctly worked in previous versions (<4.6) now I get the following error: (sorry it's in Russian) Ошибка 1 непредвиденная…
0
votes
1 answer

Xamarin.iOS - Linker behavior: Link All - Assets images removed

Has anyone experienced the images loaded in the Assets Catalog of a Xamarin.iOS project being removed when using the Linker behavior: Link All? I have the following solution structure (simplified): MyApp.csproj (shared code) MyApp.iOS.csproj (iOS…
Miguel
  • 143
  • 1
  • 7