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