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
0
votes
1 answer

How can I correctly exclude some libraries so that they are not linked in Xamarin.Android?

I have an app that is working fine but since I cannot link the libraries (because it causes an abnormal behavior) it becomes significantly bigger (20 MiB more). The main issue happens with one of my own…
Federico Navarrete
  • 3,069
  • 5
  • 41
  • 76
0
votes
1 answer

Xamarin.Android Linker error using Visual.Basic nuget on Android project

I am having an old library written in VB.net .net 3.5 using this library as dll or project reference on Xamarin.Android project works fine with linker to "none". Problem starts if I use a linker. When I set the linker as "SDK assemblies only", I am…
Emil
  • 6,411
  • 7
  • 62
  • 112
0
votes
0 answers

Xamarin IOS Linker Error when adding project

So I just added a utility project to my Xamarin solution and now I am getting linker errors. This doesn't make sense because I have Linker Behavior set to don't link. Does anyone know if there is a way to get around this? C:\Program Files…
Maxqueue
  • 2,194
  • 2
  • 23
  • 55
0
votes
2 answers

Xamarin.Android Linker issue

I have an old Xamarin Androd project that used to work in release mode. Now after around 8-9 months there are some changes so i did them and checked the application which working fine in Debug mode. But when i try to run it release mode, the app…
Mayank N
  • 116
  • 9
0
votes
2 answers

Xamarin Android Entity Framework Core linker issue

I used Entity Framework Core in one of my Xamarin Android apps. When I use SDK only as of the linker option then the app works properly. However, when I use SDK and user assemblies add linker option, the app crashes as several Entity Framework Core…
0
votes
0 answers

Explicitly include assembly in Linker process Xamarin.iOS

I'm working on Xamarin.Forms project but my Xamarin.iOS project is including some assemblies which I'm not using anywhere. I wanted to exclude those library from my project and not to be included in my IPA. Linker is set to "Don't Link" and I cant…
0
votes
1 answer

Xamarin iOS Linker Issue

I have an application that has an android and ios project with shared code. The android application works perfectly and uses the SDK Only linker. I also have a Linker file to enforce linker not removing used functions - Which is a fairly large file…
0
votes
1 answer

MSBuild.exe comprises xamarin build tools for compilation linking process?

In my PCL project, I have used the dynamic initialization of objects code. So for xamarin linking process I have used the LinkerSafe attribute and Preserve attribute (added these attribute classes in my source as we don't have xamarin dependency). I…
0
votes
2 answers

Xamarin.Android TextView doesn't raise change events when "Link SDK Assemblies" is selected

I'm working on a project in Xamarin with MvvmCross, trying to use the linker to get the app size down for release on Android and iOS (no Forms.) On Android, when I selected "Link SDK Assemblies Only", the project builds and runs with no crashes or…
0
votes
1 answer

Xamarin.Android Linker Error (Plugins.Share)

Trying to build a Xamarin.Android project in release mode, with Like SDK assemblies only enabled is producing the following error: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(5,5): Error…
0
votes
1 answer

Xamarin mtouch linker ProjectDir resolve to Windows not Host

When using mac agent for building iOS Xamarin project from Visual Studio on Windows custom linker path used in -B ${ProjectDir} is resolving ProjectDir to Windows instead of Host location. The only workaround is to specify the path by hand but it's…
awattar
  • 446
  • 5
  • 19
0
votes
1 answer

Xamarin iOS Linker fails on System.Net.Http.Primitives.dll

When building my Xamarin iOS (10.4.0.88) project for Release I get the following error when Link SDK assemblies only is enabled. I have Mono version 4.8.0.459 C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(694,3): warning :…
mmeyer
  • 69
  • 2
  • 10
0
votes
1 answer

Linking stdlibs with Xamarin

I have created a simple binding project with Xamarin. The binding project imports a static library MyLibrary.a. It also contains ApiDefinition.cs and StructAndEnum.cs made through sharpie tool. Now I have an iOS project that links that binding…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
0
votes
4 answers

Linking assemblies failed with BugSense for Xamarin.Android

I'm trying to integrate BugSense into my Xamarin Android project. I followed this guide and when I built my project I got LinkAssemblies error: Error 1 error MSB4018: The "LinkAssemblies" task failed unexpectedly. 0 0 Error 2 error…
1 2
3