Xamarin Forms应用程序无法在Windows Phone中部署“System.TypeLoadException”

时间:2017-01-15 12:36:25

标签: windows-phone-8.1 xamarin.forms

我的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'。

1 个答案:

答案 0 :(得分:0)

我不确定它是不是真正的原因,但在我的PCL项目和WindowsPhone 8.1项目中都有一个名为MainPage.xaml的页面。我在PCL项目中使用该页面,在重命名后,应用程序工作了:)