XAML Error for Visual Studio 2013



我正在尝试构建我的项目,但我一直收到这些错误消息:

Error 1 The type 'System.Windows.Markup.IQueryAmbient' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:UsersGeoffGitMy Shopping ListMy Shopping ListRunWindowItemList.xaml.cs 24 26 My Shopping List

Error 2 The type name 'IComponentConnector' could not be found in the namespace 'System.Windows.Markup'. This type has been forwarded to assembly 'System.Xaml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Consider adding a reference to that assembly. C:UsersGeoffGitMy Shopping ListMy Shopping ListobjDebugRunWindowItemList.g.cs 40 91 My Shopping List

我尝试查找MSDN如何解决这种情况,但我什么都没找到。如果有人可以帮助我提供解决方案的解决方案或文章,我将不胜感激!

我有相同的问题,在我的参考文献中添加 System.Xaml.dll后,问题解决了!

检查项目中使用的system.xaml.dll的版本,并将其与此项目的.NET版本进行比较。似乎您使用旧版本system.xaml.dll。您可以在文件夹C: Program Files(X86) Reference Assemblies Microsoft Framework.netframework

中找到其他DLL。

最新更新