表单继承和继承选择器问题 [英] Form Inheritance and Inheritance Picker problem

查看:83
本文介绍了表单继承和继承选择器问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好:

我在一个名为"UILibrary"的项目中有一些基本表格和用户控制。我在其他几个项目中创建了衍生表单和衍生用户控件。一切都很顺利。经过一段时间后,解决方案不断增长,我在"UILibrary"中修改了类,并多次构建。
问题即将到来。 当我想添加新项目时,也请选择继承的表单或继承的Usercontrol 模板,显示"程序集加载错误"消息框。消息是"无法加载程序集"D:\Ap \ UILibrary \obj \Debug \ UILibrary。 dll'。确保该文件是有效的.Net Framework程序集。" 
然后继承选择器也显示一条消息: "警告:没有构建的程序集包含要继承的组件。构建当前的应用程序,或单击"浏览"并从其他应用程序中选择以前构建的程序集。" 
我尝试单击"浏览"按钮并手动选择"UILibrary.dll",但再次获得"程序集加载错误"。

I have some base forms and usercontrols in a project named "UILibrary". And I create derived forms and derived usercontrols in other several projects. Everything goes very well. After a period of time, the solution grows and I modified classes in "UILibrary" and built it several times.
The problem is coming. When I wnat to add a new item, also select Inherited Form or Inherited Usercontrol template, an "Assembly Load Error" message box shows. The message is "Unable to load assembly 'D:\Ap\UILibrary\obj\Debug\UILibrary.dll'. Ensure that the file is a valid .Net Framework assembly." 
Then the Inheritance Picker shows you a message too: "Warning: No built assemblies contain components to inherit from. Build the current application, or click Browse and select a previously built assembly from another application." 
I try to click Browse button and select UILibrary.dll manually but get an "Assembly Load Error" again.

那么,出了什么问题?有关这个问题的任何想法吗?
提前感谢

So, what is going wrong? Any idea about this problem?
thanks in advance

推荐答案

我今天遇到了同样的错误信息,试图建立一个新表格。我刚刚创建了一个新表单并重新构建了解决方案。我测试了新表格并且它有效。所以我试着创建另一个表单。我点击了"继承表格"然后是"ADD"按钮。那是当"装配加载错误"时。显示了。我也很感激有关如何纠正这个问题的任何建议。谢谢。
I encountered the same error message today trying to build a new form.   I had just finished creating a new form and rebuilt the solution.   I tested out the new form and it worked.   So I tried to create another form.   I clicked on the "inherited form" and then the "ADD" button.   That is when the "Assembly Load Error" was displayed.   I, too, would appreciate any suggestions on how to correct this problem.   Thank you.


这篇关于表单继承和继承选择器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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