wpf 用户控件的无效标记 xaml

Invalid markup for wpf UserControl xaml

今天,当我启动我的项目时,我所有包含 UserControl 的视图都有:Invalid Markup 错误。

   <UserControl x:Class="ProjectName.View.LeftMenuControl"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                 xmlns:local="clr-namespace:RaceFlightConfigurator.View"
                 xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                 xmlns:UserControl="clr-namespace:ProjectName.View"
                 mc:Ignorable="d" 
                 d:DesignHeight="300" d:DesignWidth="300">
<UserControl:ConnectControl Margin="4"></UserControl:ConnectControl>

</UserControl>

我尝试 Rebuild solution、从设计器中删除 Shadow cache 文件夹等,但无济于事...

项目运行良好。

我找到了解决方案。我在 Mac 上使用 Parallels,我的项目在 /Mac/Username/Documents 等上。当我将项目移动到 C: 路径时,一切正常。