XAML命名空间http://schemas.microsoft.com/winfx/2006/xaml未解析

我正在使用Visual Studio 2010 Express,在C#中使用Silverlight 4项目。 这开始在我的项目中突然发生,我得到这个XAML命名空间未解决的错误:

XAML Namespace http://schemas.microsoft.com/winfx/2006/xaml is not resolved 

如果有帮助,这里是XAML文件中引发错误的部分:

  

问题是什么?

这就是你所看到的……

http://laumania.net/2010/06/21/a-possible-solution-to-the-error-xaml-namespace-httpschemas-microsoft-comexpressionblend2008-is-not-resolved/

… 或这个…

http://social.expression.microsoft.com/Forums/en/blend/thread/e180becd-5e59-4b1d-bd06-9a9547b4e68f

两者都与Blend删除属性和破坏XAML有关。 它删除(或忘记添加)用户控件的mc:Ignorable =“d”属性。

尝试再次添加WindowsBasePresentationCore程序集:

  " 

对我来说,这似乎解决了这个问题..

当我从另一个项目复制资源字典文件时,我遇到了这个问题。 我认为它必须是VS 2010的bug或其他东西,因为它是通过创建一个新的ResourceDictionary来治愈的! 然后我删除了我不需要的新词典。