我到处搜索答案,但本网站(或MSDN网站)的问题都没有解决。每当我创建一个新的Windows Phone 8.1项目时,我都会得到XamlParseException
,即使我选择了Blank App项目。我会列出我尝试的一切。
这是我的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>
我只是通过更新到Windows 10 1089来实现它,不要忘记在升级后启用开发者模式,因为“Sideload Apps”还不够。