有没有办法在设计器中使用自定义控件并避免使用GAC?

Chr*_*ris 7 c# winforms

我在这里找到一个很棒的图书馆.它是在Windows Forms中完成的AeroWizard,它优雅地处理Aero Basic.什么是令人敬畏的它应该有设计师的支持.当我尝试在窗体设计器中打开示例中的任何WizardPages时,出现此错误:

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.ControlsAero.Wizard,所以我真的不知道发生了什么错误.

我是否需要GAC注册一个程序集以获得设计师支持?

编辑:我刚用反射器检查过,这里是参考文献

Aero.Controls
mscorlib
System
System.Drawing
System.Windows.Forms
user32.dll

Aero.Wizard
mscorlib
系统
System.Drawing
System.Windows.Forms
dwmapi.dll
gdi32.dll
user32.dll
uxtheme.dll

除了本机Dll之外没有任何东西关注我,但我不知道那些会阻止表单在Designer中呈现.

以下是设计师的截图: alt text http://www.ceasetopanic.com/wp-content/uploads/2010/02/compile-error.jpg

Jos*_*osh 3

只要使用该控件的项目引用了该 DLL,Visual Studio 就应该可以毫无问题地找到该控件并加载它。您可能想要尝试构建项目,然后关闭并重新打开 Visual Studio。该程序集无需位于 GAC 中。

您还可以尝试在 Reflector 中打开该程序集,看看它是否引用了您没有的其他程序集。如果 Aero.Controls 引用了您尚未引用的另一个程序集,并且 Visual Studio 在探测它时找不到它,您将看到这种错误,并且对上述程序集进行 GAC 处理无法修复该问题。