将Visual Studio更新为15.7.2会破坏我的Xamarin Forms Android项目,但不会破坏iOS

时间:2018-05-30 10:24:51

标签: android xamarin.forms visual-studio-2017 prism

我需要将Visual Studio更新为15.7.2。解决Android项目清理崩溃问题,以及与Xamarin Forms 3(https://github.com/xamarin/Xamarin.Forms/issues/2812)相关的软件包更新问题。

我现在的问题是我以前工作的Android项目不再运行了。据我所知,在InitializeComponent()的调用中,这是App.xaml.cs类(PrismApplication的子类)中的一个问题。我用try / catch包装它(因为崩溃的应用程序没有任何异常信息)。然后我查看Exception e的内部异常并看到我得到 InvalidCastException 。但这就是我得到的。 IDE或日志文件中没有其他可用的信息。

此更新可能出现什么问题?我的整个解决方案仍然是一个非常过时的Xamarin Forms 2.4。我需要15.7.2来解决我链接的错误。在我脑海中,我现在可以更新Forms以解决这个问题,但这可能是一个完全不同的兔子洞。我还看到了关于15.7.2发生的休息的其他问题:

Xamarin.Forms with Prism not building in Visual Studio 2017 15.7.2

Visual Studio update 15.7.2 breaks Xamarin Android project

0 个答案:

没有答案