我的Xamarin Forms应用在Android中成功运行,但无法在Windows Phone 8.1中运行。表明 -
InitializeComponent()方法中的An exception of type "'System.TypeLoadException' occurred in MyAppName.DLL but was not handled in user code"
。
注意:这是一个Prism MVVM应用程序,'App'类继承自'PrismApplication'。
答案 0 :(得分:0)
我不确定它是不是真正的原因,但在我的PCL项目和WindowsPhone 8.1项目中都有一个名为MainPage.xaml
的页面。我在PCL项目中使用该页面,在重命名后,应用程序工作了:)