Visual Studio update 15.7.2 breaks Xamarin Android project

旧时模样 提交于 2020-01-05 04:21:28

问题


After updating Visual Studio, I can no longer build the release version of my Xamarin project:

1>Foobar.Android -> C:\Apps\foobar-telerik-mobile-app\foobar\Android\bin\Release\foobar.Android.dll
1>No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e". Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.
1>The "LinkAssemblies" task failed unexpectedly.
1>Mono.Linker.MarkException: Error processing method: 'System.Void Telerik.XamarinForms.DataGrid.RadDataGridResourceDictionary::InitializeComponent()' in assembly: 'Telerik.XamarinForms.DataGrid.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Func`2 Xamarin.Forms.Internals.ResourceLoader::get_ResourceProvider()

If the Android option "Use Shared Runtime" is true, it will build - except you cannot publish with that option set! So there is no point.

I have no idea how to fix this. Any Microsoft/Xamarin/Telerik insiders out there with some ideas?

来源:https://stackoverflow.com/questions/50492630/visual-studio-update-15-7-2-breaks-xamarin-android-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!