Excel 2010アドインプロジェクトに新しいリボンを追加しようとすると、次の警告メッセージが表示されますこのエラーを解決する方法「Microsoft.Office.Tools.Ribbon.RibbonCollectionBase」の基本クラスは設計できません
The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:
Ribbon2 --- The base class 'System.Object' cannot be designed. ThisRibbonCollection --- The base class
'Microsoft.Office.Tools.Ribbon.RibbonCollectionBase' cannot be designed.
我々はRibbon1.Designer.csでコードを表示する場合も、エラーは、この行を指している:
base.Dispose(disposing);
私が間違ってそこに行った何見当がつかない。他のOfficeアセンブリがないのですか?
(私のプロジェクトで、私はMicrosoft.Office.Core
、Microsoft.Office.Interop.Excel
、Microsoft.Office.Tools
、Microsoft.Office.Tools.Common
、Microsoft.Office.Tools.Excel
、Microsoft.Office.Tools.Common.v4.0.Utilities
、Microsoft.Office.Tools.v4.0.Framework
を持っている)誰が助けることはできますか?ありがとう。