在我的Xamarin解决方案中,我在Controls解决方案文件夹中添加了一个新的库项目。在我的XAML in Views中,我调用了组件,一切都很好。我不知道今天iOS 10和Visual Studio for Mac更新后是否有什么变化,但如果我试图编译解决方案,我会收到一个错误
System.Reflection.TargetInvocationException:调用的目标引发了异常。-> X
我试图用下面的代码在xamarin窗体中启动一个警报框,但是在下面的例外情况下调用失败了。} catch (Exception ex) throw ex; }
异常详细信息:System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocationvalue) [0x00000] in