2016-01-23 29 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>