Rg.Plugins.Popup 仅在 UWP 中关闭弹出窗口时崩溃
Rg.Plugins.Popup Crashes on closing popup only in UWP
我使用 Rg.Plugins.Popup 有一段时间了,但我无法在新项目的 UWP 上使用它了。
虽然它在 Android 中完美运行,但我在 UWP 中遇到此错误:
Exception thrown: 'System.NullReferenceException' in Rg.Plugins.Popup.UWP.dll
Object reference not set to an instance of an object.
Rg.Plugins.Popup.UWP.dll!Rg.Plugins.Popup.Windows.Renderers.PopupPageRenderer.UpdateElementSize() Line 124
我做了一个小的测试回购 here。
我使用 Rg.plugins.popup 1.1.5.188,Xamarin 5.0.0.2012,UWP 中的目标平台是 10.0.19041.
任何人都可以帮助我 and/or 检查你是否有相同的行为?
我还注意到 Rg.plugins.popup 版本 2.0.0.12 出现了另一个错误:
错误 CS0234 命名空间 'Rg.Plugins.Popup' 中不存在类型或命名空间名称 'Popup'(是否缺少程序集引用?)
这是我在 UWP 中的初始化代码,就像 WIKI 中描述的那样:
真是浪费时间...
https://github.com/rotorgames/Rg.Plugins.Popup/issues/527
最低目标必须设置为 10.0.17763 或更高。不仅是目标版本。这就是诀窍。
太蠢了...
我使用 Rg.Plugins.Popup 有一段时间了,但我无法在新项目的 UWP 上使用它了。
虽然它在 Android 中完美运行,但我在 UWP 中遇到此错误:
Exception thrown: 'System.NullReferenceException' in Rg.Plugins.Popup.UWP.dll
Object reference not set to an instance of an object.
Rg.Plugins.Popup.UWP.dll!Rg.Plugins.Popup.Windows.Renderers.PopupPageRenderer.UpdateElementSize() Line 124
我做了一个小的测试回购 here。 我使用 Rg.plugins.popup 1.1.5.188,Xamarin 5.0.0.2012,UWP 中的目标平台是 10.0.19041.
任何人都可以帮助我 and/or 检查你是否有相同的行为?
我还注意到 Rg.plugins.popup 版本 2.0.0.12 出现了另一个错误: 错误 CS0234 命名空间 'Rg.Plugins.Popup' 中不存在类型或命名空间名称 'Popup'(是否缺少程序集引用?)
这是我在 UWP 中的初始化代码,就像 WIKI 中描述的那样:
真是浪费时间...
https://github.com/rotorgames/Rg.Plugins.Popup/issues/527
最低目标必须设置为 10.0.17763 或更高。不仅是目标版本。这就是诀窍。 太蠢了...