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

10

我正在使用Visual Studio 2010 Express,在一个C#的Silverlight 4项目上工作。在我的项目中,突然出现了这个错误: XAML命名空间未解析:

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

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

<ResourceDictionary xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
                xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                xmlns:GetGlue="clr-namespace:GetGluePlugin;assembly=GetGluePlugin"
                xmlns:System="clr-namespace:System;assembly=mscorlib"
                xmlns:utils="clr-namespace:Seesmic.Sdp.Utils;assembly=Seesmic.Sdp.Utils">

问题可能是什么?

3个回答

1

Mads Laumann的帖子正确链接:http://laumania.net/2010/06/21/a-possible-solution-to-the-error-xaml-namespace-httpschemas-microsoft-comexpressionblend2008-is-not-resolved/ - Marco G

1
尝试再次添加WindowsBasePresentationCore程序集:
<add assembly="WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

<add assembly="PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>"

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

0

我在从另一个项目复制资源字典文件时遇到了这个问题。我认为这一定是VS 2010的一个bug或者其他什么问题,因为创建一个新的ResourceDictionary后问题就解决了!然后我删除了我不需要的新字典。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接