我在设计器中得到了以下代码(这是自动生成的),但它有 Telerik 用红色下划线表示
The type or namespace Telerik could not be found in the global namespace (are you missing an assembly reference?)
/// <summary>
/// RadEditorCtrl control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::Telerik.Web.UI.RadEditor RadEditorCtrl;
最佳答案
首先检查:
在解决方案资源管理器中,选择项目。
在“项目”菜单上,选择“添加引用”。
“添加引用”对话框打开。
选择指示您要引用的组件类型的选项卡。
在顶部 Pane 中,选择要引用的组件,然后单击“选择”按钮。单击以选择多个组件时按住 CTRL。
提示 - 如果您要查找的组件不在列表中,您可以使用浏览按钮找到它(您很可能需要这样做)
当您选择了所有需要的组件后,单击“确定”。
选定的引用将显示在项目的“引用”节点下。
关于c# - 设计师不认识 Telerik,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7942859/