将 Xamarin Forms 4.8 更新为 5 后,Xamarin UWP 项目因 App Designer 页面中未处理的异常而崩溃

After Updating Xamarin Forms 4.8 to 5 Xamarin UWP Project Crashed with unhandled Exception in App Designer Page

我遇到了这个异常:{“委托给实例方法不能有 null 'this'。”}

消息是:

System.ArgumentException: Delegate to an instance method cannot have null 'this'.at System.MulticastDelegate.ThrowNullThisInDelegateToInstance()at Xamarin.Forms.Platform.UWP.CarouselViewRenderer.InitialSetup(Object sender, SizeChangedEventArgs e )

有人遇到过这个问题吗??

请参考Xamarin.Forms 5.0.0.1874 (5.0.0) Release Notes. And remove type list contains CarouselViewRenderer,因此5.0版本将不可用。请检查您是否使用过CarouselView,并删除它。