本文介绍了设计器错误“无法找到类型...”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个项目,我已经工作了几个星期。我一直在使用 BindingSource控件 - 我在这个特定的表单上有四个。 今天早上我去看了设计师报告得到: 找不到类型''LandarcBL.Budget''。请确保引用包含此类型的 程序集。如果此类型是您的开发项目的一部分,请确保项目已成功构建 。 隐藏编辑 System.ComponentModel.Design.Serialization.CodeDom SerializerBase.Error(IDesignerSerializationManager manager,String exceptionText,String helpLink) at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManager manager,String name,CodeExpression expression) at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeAssignStatement(IDesigne rSerializationManager manager,CodeAssignStatement statement) at System.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeStatement(IDesignerSeria lizationManager manager,CodeStatement statement) 当我点击编辑时需要我到MainFo rm.Designer.CS行: this.budgetBindingSource.DataSource = typeof(LandarcBL.Budget); 当我将鼠标悬停在LandarcBL上时.Budget是向我展示了intellisense。 它当然发现它很好。 我可以点击F5然后运行表格就好了。我添加了另一个表单,添加了一个 BindingSource,将其DataSource设置为同一个类,并且该表单加载 设计师就好了。 今天早上我做了很多东西 - 运行表格,关闭VS,我不知道b $ b知道还有什么,它又开始工作了。现在没有任何影响 任何影响。 我发现很多关于谷歌这个问题的报告,但没有真正的解决方案 我的具体情况。 任何人都有任何想法吗?I''ve got a project I''ve been working on for a few weeks. I''ve been usingthe BindingSource control - I''ve got four of them on this particular form.This morning I went to view the report in the designer and got:Could not find type ''LandarcBL.Budget''. Please make sure that theassembly that contains this type is referenced. If this type is a part ofyour development project, make sure that the project has been successfullybuilt.Hide EditatSystem.ComponentModel.Design.Serialization.CodeDom SerializerBase.Error(IDesignerSerializationManagermanager, String exceptionText, String helpLink)atSystem.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeExpression(IDesignerSeri alizationManagermanager, String name, CodeExpression expression)atSystem.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeAssignStatement(IDesigne rSerializationManagermanager, CodeAssignStatement statement)atSystem.ComponentModel.Design.Serialization.CodeDom SerializerBase.DeserializeStatement(IDesignerSeria lizationManagermanager, CodeStatement statement)When I click Edit it takes me to the MainForm.Designer.CS line:this.budgetBindingSource.DataSource = typeof(LandarcBL.Budget);When I hover the mouse over LandarcBL.Budget is shows me the intellisense.It''s finding it just fine of course.I can hit F5 and run the form just fine. I added another form, added aBindingSource, set its DataSource to the same class and that form loads inthe designer just fine.This morning I did a bunch of stuff - ran the form, closed VS, and I don''tknow what else, and it started working again. Now none of that is havingany affect.I''ve found many reports of this problem with google but no real solution tomy exact circumstances.Anyone have any ideas?推荐答案 这篇关于设计器错误“无法找到类型...”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-15 06:13