“无法创建WindowsPage实例" [英] "Cannot create instance of WindowsPage"

查看:76
本文介绍了“无法创建WindowsPage实例"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Xamarin.Forms跨平台应用程序模板. 现在,我在UWP项目中收到无法创建WindowsPage实例"错误. 注意:我尚未对模板进行任何更改. 错误屏幕截图

I created a Xamarin.Forms cross-platform application template. Now I am getting "Cannot create instance of WindowsPage" error in the UWP project. Note: I have not made any changes to the template. Error Screenshot

推荐答案

对于我而言,该错误不会阻止项目的编译,仅当在编辑器中打开MainPage.xaml文件时才会出现该错误.因此,我建议您在构建解决方案之前关闭该文件,该错误将消失.

In my case the error does not prevent the project from compiling and only appears if the MainPage.xaml file is open in the editor. So I would suggest that you close that file prior to building your solution and the error will go away.

无论如何,我希望能有所帮助.

Anyway, I hope that helps.

这篇关于“无法创建WindowsPage实例"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆