Visual Studio,本地化功能区项目

时间:2013-07-03 11:37:53

标签: c# visual-studio ribbon visual-studio-addins

在Visual Studio 2010或2012中,每当我将语言从“(默认)”更改为C#中Word 2010/2013加载项项目中功能区项的属性中的其他内容时,我会收到以下两个错误:

对于使用Factory.CreateItem()设置的每个项目(如Factory.CreateRibbonDialogLauncher()):

  

类型   'Microsoft.VisualStudio.Tools.Office.Ribbon.View.GenericRibbonView'   没有名为'Factory'的属性。调用堆栈:at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager   manager,String exceptionText,String helpLink)at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializePropertyReferenceExpression(IDesignerSerializationManager   manager,CodePropertyReferenceExpression propertyReferenceEx,Boolean   reportError)at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager   manager,String name,CodeExpression expression)at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager   manager,String name,CodeExpression expression)at   System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager   经理,CodeStatement声明)at   System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager   经理,对象代码对象)at   System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager   manager,String name,CodeStatementCollection语句)

对于功能区中的每个选项卡:

  

变量'tab1'未声明或从未分配过。呼叫   堆:   在    System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager   manager,String exceptionText,String helpLink)at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager   manager,String name,CodeExpression expression)at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager   manager,String name,CodeExpression expression)at   System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeStatement(IDesignerSerializationManager   经理,CodeStatement声明)

项目是新的,我唯一做的就是添加一个功能区项目。

有什么问题?

0 个答案:

没有答案