【问题标题】:'Manifest file doesn't conform to the schema definition' when uploading Outlook add-in manifest上传 Outlook 加载项清单时出现“清单文件不符合架构定义”
【发布时间】:2016-01-23 22:07:24
【问题描述】:

为实现 add-in commands 的 Outlook 加载项上传清单文件时,我收到以下错误:

出了点问题

无法安装此应用。清单文件不符合架构定义。命名空间“http://schemas.microsoft.com/office/mailappversionoverrides”中的元素“CustomTab”在命名空间“http://schemas.microsoft.com/office/mailappversionoverrides”中具有无效的子元素“标签”。预期的可能元素列表:'命名空间中的组'http://schemas.microsoft.com/office/mailappversionoverrides'...

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

【问题讨论】:

    标签: office365 outlook-web-addins


    【解决方案1】:

    简答:确保Label 元素出现在Group 元素内的所有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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-11
      • 2017-06-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-23
      • 1970-01-01
      • 2023-04-05
      相关资源
      最近更新 更多