简体   繁体   English

wpf UserControl xaml的标记无效

[英]Invalid markup for wpf UserControl xaml

Today when i launch my project, all my views that contains UserControl have: Invalid Markup error. 今天,当我启动我的项目时,包含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>

I tried to Rebuild solution , remove Shadow cache folder from designer, etc. but nothing help... 我试图Rebuild solution ,从设计师等删除Shadow cache文件夹,但没有任何帮助...

Project works fine. 项目工作正常。

I found solution. 我找到了解决方案 I use Parallels on Mac, and my project was on /Mac/Username/Document s etc. When i moved project to C: path, all works. 我在Mac上使用Parallels,我的项目在/Mac/Username/Document等等。当我将项目移动到C:路径时,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM