2016-01-23 31 views
1

上传时为Outlook清单文件加载实现add-in commands,我得到以下错误:“清单文件不符合的模式定义”时上传的Outlook插件清单

Something went wrong

This app can't be installed. The manifest file doesn't conform to the schema definition. The element 'CustomTab' in namespace ' http://schemas.microsoft.com/office/mailappversionoverrides ' has invalid child element 'Label' in namespace ' http://schemas.microsoft.com/office/mailappversionoverrides '. List of possible elements expected: 'Group in namespace ' http://schemas.microsoft.com/office/mailappversionoverrides '...

但是,Label元素是CustomTab元素的有效子元素。我该如何解决这个问题?

回答

3

简短的回答:确保Label元素出现CustomTab元素中的所有元素Group

Office 365最近对清单文件启用了额外的架构验证,并且由于为CustomTab元素定义架构的方式,因此期望Label之后。

换句话说,这个CustomTab元素的清单将触发错误:

<CustomTab id="TabCustom1"> 
    <Label resid="customTabLabel1"/> 
    <Group id="group1"> 
    <Label resid="groupLabel1"/> 
    <Control xsi:type="Button" id="uilessButton1"> 
     <Label resid="uilessButtonLabel1"/> 
     <Supertip> 
     <Title resid="uilessButtonSuperTipTitle1"/> 
     <Description resid="uilessButtonSuperTipDesc1"/> 
     </Supertip> 
     <Icon> 
     <bt:Image size="16" resid="uilessButtonIcon1-16"/> 
     <bt:Image size="32" resid="uilessButtonIcon1-32"/> 
     <bt:Image size="80" resid="uilessButtonIcon1-80"/> 
     </Icon> 
     <Action xsi:type="ExecuteFunction"> 
     <FunctionName>buttonFunction1</FunctionName> 
     </Action> 
    </Control> 
    </Group> 
</CustomTab> 

它更改为这将解决该错误:

<CustomTab id="TabCustom1"> 
    <Group id="group1"> 
    <Label resid="groupLabel1"/> 
    <Control xsi:type="Button" id="uilessButton1"> 
     <Label resid="uilessButtonLabel1"/> 
     <Supertip> 
     <Title resid="uilessButtonSuperTipTitle1"/> 
     <Description resid="uilessButtonSuperTipDesc1"/> 
     </Supertip> 
     <Icon> 
     <bt:Image size="16" resid="uilessButtonIcon1-16"/> 
     <bt:Image size="32" resid="uilessButtonIcon1-32"/> 
     <bt:Image size="80" resid="uilessButtonIcon1-80"/> 
     </Icon> 
     <Action xsi:type="ExecuteFunction"> 
     <FunctionName>buttonFunction1</FunctionName> 
     </Action> 
    </Control> 
    </Group> 
    <Label resid="customTabLabel1"/> 
</CustomTab>