Completed
Last Updated: 16 Apr 2019 15:57 by Navid
ADMIN
Stefan Nenchev
Created on: 14 May 2018 08:52
Category: UI for Xamarin
Type: Bug Report
30
LinkAssemblies Build Errors with Xamarin.Forms 3.0

		
20 comments
Navid
Posted on: 16 Apr 2019 15:57

Hello

I had this problem and I solved it with installing visual studio 2019.

good luck

ADMIN
Lance | Technical Support Engineer, Principal
Posted on: 06 Jun 2018 15:16
Update 4:  Xamarin.Forms 3.0 Service Release 3 is now available (v 3.0.0.550146)

You can install it using NuGet package manager or download it directly from the Xamarin.Forms releases page: https://github.com/xamarin/Xamarin.Forms/releases

For confirmation, here's a screenshot of a build and deploy using 3.0.0.550146 with Linker set to "SDK and User Assemblies" - https://www.screencast.com/t/ZMEd74var6
ADMIN
Lance | Technical Support Engineer, Principal
Posted on: 05 Jun 2018 22:10
Update 3: Merged

The fix has been merged into Xamarin.Forms master and will be in 
- Xamarin.Forms 3.0 sr3 (Service Release)  
- Xamarin.Forms 3.1 pre3 (Pre-release)

At the time of writing this, those builds have not yet been released (latest is sr2 and pre2). I will come back and post a final update once they are available and I've personally tested both.
ADMIN
Lance | Technical Support Engineer, Principal
Posted on: 01 Jun 2018 14:31
Update 2: The Xamarin dev team at Microsoft acted quickly and was able to fix the problem. 

See my forum post reply for full details: https://www.telerik.com/forums/linkassemblies-errors-after-upgrade-to-xamarin-forms-v3-0#4vOcpoJtq0iYzOB08Zvvag 
DiscoDan
Posted on: 29 May 2018 13:54
I am also getting this now, thanks
ADMIN
Lance | Technical Support Engineer, Principal
Posted on: 28 May 2018 13:59
Update: We were able to isolate and identify the regression in Xamarin.Forms that causes this issue. It has been reported and escalated to the Xamarin team. They've preliminarily identified it as a regression bug.

If you'd like to follow that issue in addition to this UI for Xamarin item, you can do so here:  https://github.com/xamarin/Xamarin.Forms/issues/2835 

Thank you for your patience and understanding!
n/a
Posted on: 24 May 2018 10:12
Getting error on building IPA file of IOS project (Release, Ad-Hoc)
Xamarin version 3.0.0.482510
Output:

Can't resolve the reference 'System.Func`2<System.String,System.String> Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()', referenced from the method 'System.Void Telerik.XamarinForms.Input.RadNumericInputResourceDictionary::InitializeComponent()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.	ProjectName.iOS

Jeroom
Posted on: 17 May 2018 18:04
05-17 18:03:33.311 I/MonoDroid( 3436): UNHANDLED EXCEPTION:

05-17 18:03:33.376 I/MonoDroid( 3436): System.MissingMethodException: Method 'Xamarin.Forms.Internals.ResourceLoader.get_ResourceProvider' not found.

05-17 18:03:33.376 I/MonoDroid( 3436):   at Telerik.XamarinForms.DataGrid.RadDataGridResourceDictionary..ctor () [0x00006] in <cc7bab1c249f4e7ea2ac15a913079431>:0 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Telerik.XamarinForms.DataGrid.RadDataGrid.EnsureOptionsPopupTemplates () [0x00000] in <cc7bab1c249f4e7ea2ac15a913079431>:0 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Telerik.XamarinForms.DataGrid.RadDataGrid.OnRendererChanged (System.Object renderer) [0x0001b] in <cc7bab1c249f4e7ea2ac15a913079431>:0 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Telerik.XamarinForms.Common.BindablePropertyExtensions.VisualElement_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00030] in <83e9450bdb2246d38d9bee0a3de18489>:0 
05-17 18:03:33.376 I/MonoDroid( 3436):   at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x0000a] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:153 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:402 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Telerik.XamarinForms.DataGrid.RadDataGrid.OnPropertyChanged (System.String propertyName) [0x00000] in <cc7bab1c249f4e7ea2ac15a913079431>:0 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00116] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:634 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0015b] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:426 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0003d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:583 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:99 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.Platform.SetRenderer (Xamarin.Forms.VisualElement bindable, Xamarin.Forms.Platform.Android.IVisualElementRenderer value) [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:331 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000f8] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:127 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00145] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:266 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:87 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:349 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000f2] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:182 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:126 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Content.Context context) [0x0001f] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:312 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x000a0] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:116 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00145] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:266 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:87 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:349 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000f2] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:182 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:126 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element, Android.Support.V4.App.FragmentManager fragmentManager, Android.Content.Context context) [0x00031] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:359 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnCreateView (Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Android.OS.Bundle savedInstanceState) [0x00008] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FragmentContainer.cs:50 
05-17 18:03:33.376 I/MonoDroid( 3436):   at Android.Support.V4.App.Fragment.n_OnCreateView_Landroid_view_LayoutInflater_Landroid_view_ViewGroup_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_inflater, System.IntPtr native_container, System.IntPtr native_savedInstanceState) [0x00020] in <3682f8af23a748128467fbf9c57ae876>:0 
05-17 18:03:33.376 I/MonoDroid( 3436):   at (wrapper dynamic-method) System.Object.26b0420d-c92b-40b7-a0df-ecc2a7a0be26(intptr,intptr,intptr,intptr,intptr)
Namysław
Posted on: 17 May 2018 12:16
Same for me at Xamarin.Forms 3.x release, even latest pre release - 3.1.0.469394-pre1:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(791,3): error : Can't resolve the reference 'System.Func`2<System.String,System.String> Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()', referenced from the method 'System.Void Telerik.XamarinForms.Input.RadNumericInputResourceDictionary::InitializeComponent()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
Rémi
Posted on: 17 May 2018 10:26
Hi,
Same problem with our apps :

 Error MT2101: Can't resolve the reference 'System.Func`2<System.String,System.String> Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()', referenced from the method 'System.Void Telerik.XamarinForms.Input.RadNumericInputResourceDictionary::InitializeComponent()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'. (MT2101) (XXXXXXX.App.iOS)
Julien
Posted on: 17 May 2018 04:51
Hello,
Android and iOS have both the same linking problem. Here is the iOS one:

Severity	Code	Description	Project	File	Line	Suppression State
Error		Can't resolve the reference 'System.Func`2<System.String,System.String> Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()', referenced from the method 'System.Void Telerik.XamarinForms.Input.RadNumericInputResourceDictionary::InitializeComponent()' in 'Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.	PollenImpact.iOS	C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets	791	
Clay
Posted on: 16 May 2018 19:54
Here is base level app that exhibits this issue for me:

https://github.com/helzgate/TestCalendar 
Clay
Posted on: 16 May 2018 18:54
Using Hari Mynam's suggestion worked but my APK jumped up 30 megs.  This is not an acceptable solution at all.
Hari
Posted on: 16 May 2018 18:20
After updating Android project Linker Behaviour to "Don't Link" I don't see any linker error for Ad-hoc and release builds.

Thanks,
Clay
Posted on: 16 May 2018 17:49
Just installed Telerik.UI.for.Xamarin.Lite (2018.2.516.2) and building for release I got:

The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Void Telerik.XamarinForms.Input.RadNumericInputResourceDictionary::InitializeComponent()' in assembly: 'Telerik.XamarinForms.Input.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Func`2<System.String,System.String> Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()
   at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
   at Mono.Linker.Steps.MarkStep.MarkInstruction(Instruction instruction)
   at Mono.Linker.Steps.MarkStep.MarkMethodBody(MethodBody body)
   at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   --- End of inner exception stack trace ---
   at Mono.Linker.Steps.MarkStep.ProcessQueue()
   at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
   at Mono.Linker.Steps.MarkStep.Process()
   at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()	Target.Android			
Pablo
Posted on: 16 May 2018 17:34
I just updated to this new version using NuGet and still getting this error.
Hari
Posted on: 16 May 2018 17:25
Today after updating new version, still getting this error for ad-hoc, release builds.

Thanks,
Julien
Posted on: 16 May 2018 12:47
It seems that the release is for today (as written by the team in my ticket) but I dont know if this issue is addressed or not
Rémi
Posted on: 16 May 2018 12:10
Hi,
When the release will be published ?
Yordan
Posted on: 16 May 2018 11:00
Hello,

Would this problem be addressed for the R2 version?