“XML 命名空间‘clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit’中不存在标签‘MenuItem’"错误 [英] "The tag 'MenuItem' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit'" error

查看:40
本文介绍了“XML 命名空间‘clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit’中不存在标签‘MenuItem’"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试在新机器上构建 Silverlight 应用程序时遇到错误.(Silverlight 4,Visual Studio 2010)这个应用程序在其他四台机器上编译没有错误.

I'm getting an error trying to build a Silverlight application on a new machine. (Silverlight 4, Visual Studio 2010) This application compiles without error on four other machines.

错误是:

the tag 'MenuItem' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit'. 

引用似乎是指向正确程序集的指针.有其他人遇到过这个问题吗?

The references appear to be pointer to the correct assemblies. Has anyone else ever had this problem?

推荐答案

发生此问题的另一个原因是缺少对使用 Toolkit 控件部分所需的所有三个"程序集的引用.

Another reason this issue may occur is due to missing a reference to all "three" assemblies required to use the portions of the the Toolkit controls.

如果尝试使用 Toolkit 输入(并且也可能假设主题),请确保您参考了以下程序集.

Make sure you have reference to the following assemblies if attempting to use the Toolkit inputs (and assuming the themes also possibly).

System.Windows.Controls
System.Windows.Controls.Toolkit
System.Windows.Controls.Input.Toolkit

这解决了我遇到的与错误相关的问题.

This solved the problem I was having in relation to the error.

这篇关于“XML 命名空间‘clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit’中不存在标签‘MenuItem’"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆