windows-store-apps - 使用 VS 2015 运行在 Windows 10 上构建的 Windows 8.1 应用程序

标签 windows-store-apps windows-8.1 visual-studio-2015 windows-10

我们的(托管)Windows 8.1 Store 应用程序构建在带有 VS 2015 的 Windows 10 上,在启动时崩溃,并在运行 Windows 8.1 的设备上出现奇怪的 XAML 解析错误(没有给出堆栈跟踪或源文件,只是陷入未处理的异常处理程序中,所以没有机会调试):

Cannot deserialize XBF metadata property list as 'HorizontalContentAlignment' was not found in type 'null'.

附加信息:

  • 在 Windows 8.1 和 VS 2015 上构建,该应用程序将正常运行
  • 该应用程序将在 Windows 10 设备上正常运行
  • 应用程序在 Windows 8.1 设备上旁加载

截至 Visual Studio 2015 compatibility guide ,该场景应该得到支持。是否有人遇到过同样的问题并克服了它?

最佳答案

我通常将此类神秘错误跟踪到样式或模板资源文件,正如您所指出的,我发现 Visual Studio 没有提供应有的帮助。如果您检查样式或模板文件(例如 generic.xaml 或您自己的自定义样式文件等),并且如果缺少某些内容,Visual Studio 通常会用蓝色波浪下划线标记它(我必须说并不总是准确但大约我估计是 90%)。

这可能不是答案,但分享了我对 XAML 解析错误的经验,没有任何线索可以继续。

关于windows-store-apps - 使用 VS 2015 运行在 Windows 10 上构建的 Windows 8.1 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31782613/

相关文章:

c# - XAML Hub 控制 Windows 8.1 通用应用程序

c++ - 在 C++ vs2015 中嵌入 python 3

javascript - vs2015 - JavaScript/WinJS。 .winControl 错误(未定义或空引用)

xaml - UWP应用程序可以移植到Windows 7吗?

xaml - 如何在 Windows Store Universal App (W8.1 + WP8.1) 中格式化日期?

javascript - 使用LocalStorage访问网站时出现"SCRIPT5: Access is denied"错误

android-emulator - 如何将 Visual Studio 2015 Android Emulator 连接到网络?

c++ - PPL 任务何时在 UI 线程上执行?

c# - 检查多边形是否被点击

javascript - 需要来自 TFS/Sharepoint 的 Ping 请求