【问题标题】:After update to Xamarin.Forms 5, App crashes with Shell error更新到 Xamarin.Forms 5 后,应用程序因 Shell 错误而崩溃
【发布时间】:2023-03-12 02:11:01
【问题描述】:

最后我决定将我的应用程序更新为新的Xamarin.Forms 5 ...但是在解决了构建和运行应用程序的一些问题后,它崩溃并出现错误:

IsTransient: Exception of type 'System.NotImplementedException' was thrown
Message: No Content found for ShellContent, Title:New Contact, Route D_FAULT_ShellContent16
TargetSite: Xamarin.Forms.IShellContentController.GetOrCreateContent

有人遇到过同样的问题吗?

【问题讨论】:

  • 你在哪里得到这个错误?您是否在项目中实施了 Shell?
  • 我在启动时遇到此错误...是的,我的项目中有 Shell,但之前它有效,我只更新了 Xamarin.Forms 5
  • 您是否检查了版本 5 的重大更改?
  • 是的,但是我没有找到与ContentTemplate相关的东西

标签: visual-studio xamarin.forms mobile xamarin.android xamarin.ios


【解决方案1】:

似乎问题发生了,因为 Xamarin.Forms 5 不允许 not set ContentTemplate for FlyoutItem

【讨论】:

    猜你喜欢
    • 2014-05-21
    • 2019-01-22
    • 1970-01-01
    • 1970-01-01
    • 2020-02-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多