使用XAML Designer时出现XamlParseException

问题描述 投票:0回答:1

重要提示:请考虑以下关闭的.xaml代码中的每个标记

我到处搜索答案,但本网站(或MSDN网站)的问题都没有解决。每当我创建一个新的Windows Phone 8.1项目时,我都会得到XamlParseException,即使我选择了Blank App项目。我会列出我尝试的一切。

  • 重新安装VS 2015
  • 在没有SDK的情况下重新安装VS 2015,然后使用模拟器将其下载
  • 在Windows上启用开发者模式
  • 禁用项目代码
  • 使用自动编辑器选择器和XAML设计器打开.xaml文件
  • 当然,在选项中启用XAML Designer
  • 更新Windows 10(注意:我无法升级到1809,我被困在1803)
  • 在BIOS上启用Hypervisor
  • 重新启动计算机
  • 在项目上手动添加'ThemeResources.xaml'
  • 构建,重建和清理解决方案
  • 使用不同的.NET Framework版本

这是我的App.xaml代码:

<Application
x:Class="App2.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App2">

这是我的MainPage.xaml代码:

<Page
x:Class="App2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App2"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

<Grid>

</Grid>

xaml visual-studio-2015 windows-phone-8.1 designer xamlparseexception
1个回答
1
投票

我只是通过更新到Windows 10 1089来实现它,不要忘记在升级后启用开发者模式,因为“Sideload Apps”还不够。

© www.soinside.com 2019 - 2024. All rights reserved.