有一個偉大的圖書館,我發現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