问题
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