有一个伟大的图书馆,我发现here。它是在Windows Forms中完成的AeroWizard,它优雅地处理Aero Basic。真棒是它应该有设计师的支持。当我试图在窗体设计的样品中打开任何WizardPages的,我得到这个错误:有没有办法在设计器中使用自定义控件并避免使用GAC?
Could not find type 'Aero.Controls.MainInstructionsLabel'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.
图书馆是我Aero.Controls
和Aero.Wizard
下项目引用的,所以我真的不知道出了什么问题。
我需要GAC注册程序集以获得设计人员支持吗?
编辑: 我只是反射检查,这里是引用
Aero.Controls
的mscorlib
系统
System.Drawing中
System.Windows.Forms的
user32.dll中
Aero.Wizard
mscorlib
个系统
System.Drawing中
System.Windows.Forms的
dwmapi.dll文件
GDI32.DLL
user32.dll中
的uxtheme.dll
除了本机DLL没有涉及我,但我不看不到这些会如何阻止表单在设计器中呈现。
下面是来自设计师的屏幕截图: alt text http://www.ceasetopanic.com/wp-content/uploads/2010/02/compile-error.jpg
这听起来像是另一个引用程序集未找到的问题。 – kyoryu 2010-02-15 04:31:14
原来程序集已签名,我的lib文件夹中缺少“snk”文件,我从源文件复制过来,现在设计器可以加载jsut。 – Chris 2010-02-15 06:25:22