使用XAML设计器时发生XamlParseException 重要:考虑下面关闭的.xAML代码中的每个标记

使用XAML设计器时发生XamlParseException 重要:考虑下面关闭的.xAML代码中的每个标记,xaml,visual-studio-2015,windows-phone-8.1,designer,xamlparseexception,Xaml,Visual Studio 2015,Windows Phone 8.1,Designer,Xamlparseexception,我到处都在寻找答案,但这个网站(或MSDN网站)上的问题都没有解决。每当我创建一个新的Windows Phone 8.1项目时,即使选择空白应用程序项目,我也会得到 xAMLPARSEExpUT/。我将列出我尝试过的所有内容。 重新安装VS 2015 在不使用SDK的情况下重新安装VS 2015,然后稍后使用模拟器下载 在Windows上启用开发人员模式 禁用项目代码 使用自动编辑器选择器和xaml设计器打开.xaml文件 在选项中启用XAML设计器,当然 更新Windows 10(注意:我无


我到处都在寻找答案,但这个网站(或MSDN网站)上的问题都没有解决。每当我创建一个新的Windows Phone 8.1项目时,即使选择空白应用程序项目,我也会得到<代码> xAMLPARSEExpUT/<代码>。我将列出我尝试过的所有内容。

  • 重新安装VS 2015
  • 在不使用SDK的情况下重新安装VS 2015,然后稍后使用模拟器下载
  • 在Windows上启用开发人员模式
  • 禁用项目代码
  • 使用自动编辑器选择器和xaml设计器打开.xaml文件
  • 在选项中启用XAML设计器,当然
  • 更新Windows 10(注意:我无法升级到1809,我只能使用1803)
  • 在BIOS上启用虚拟机监控程序
  • 重新启动计算机
  • 在项目上手动添加“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">
<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>

这是我的MainPage.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">
<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>


我只需更新到Windows 10 1089就可以工作,升级后不要忘记启用开发者模式,因为“侧载应用程序”是不够的。

我无法让StackOverflow显示最后一行代码,但我可以向您保证,每个标签都与在VM中安装Windows 8.1和在那里安装VS2015非常接近。手机8.1已经死了一段时间,所以微软不再关心与之相关的任何事情。@magicandre1981我让它工作了,我只需要更新到Windows101089