命名空间不存在”xxx“名称
<Window x:Class="HappyWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:HappyWPF"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.Resources>
<local:Human x:Key="human" Name="Tim"/>
</Window.Resources>
<Grid>
</Grid>
</Window>
在<local:Human x:Key=“human” Name=“Tim”/>这个地方,第一次新建项目的时候,需要点击生产解决方案才能解决报错问题