这是Outlook外接程序中的无效xsi:type DetectedEntity

问题描述

当我在Outlook邮件(Web和桌面)中读取消息时,我试图检测一种模式,因此我决定添加DetectedEntity扩展点,但在网络上却不断收到以下错误不适用于桌面Office 2016。

无法安装此应用。清单文件不符合 模式定义。这是无效的xsi:type 'http://schemas.microsoft.com/office/mailappversionoverrides:DetectedEntity'... 这是无效的xsi:type “ http://schemas.microsoft.com/office/mailappversionoverrides:DetectedEntity”。

清单

  <!-- Message Read -->
  <ExtensionPoint xsi:type="MessageComposeCommandSurface">
    <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
    <OfficeTab id="TabDefault">
      <!-- Up to 6 Groups added per Tab -->
      <Group id="msgComposeCmdGroup">
        <Label resid="GroupLabel" />
        <!-- Launch the add-in : task pane button -->
        <Control xsi:type="Button" id="msgReadOpenPaneButton">
          <Label resid="TaskpaneButton.Label" />
          <Supertip>
            <Title resid="TaskpaneButton.Label" />
            <Description resid="TaskpaneButton.Tooltip" />
          </Supertip>
          <Icon>
            <bt:Image size="16" resid="Icon.16x16" />
            <bt:Image size="32" resid="Icon.32x32" />
            <bt:Image size="80" resid="Icon.80x80" />
          </Icon>
          <Action xsi:type="ShowTaskpane">
            <SourceLocation resid="Taskpane.Url" />
          </Action>
        </Control>
        <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
      </Group>
    </OfficeTab>
  </ExtensionPoint>
  <ExtensionPoint xsi:type="DetectedEntity">
    <Label resid="residLabelName"/>
    <!--If you opt to include RequestedHeight,it must be between 140px to 450px,inclusive.-->
    <!--<RequestedHeight>360</RequestedHeight>-->
    <SourceLocation resid="Taskpane.Url" />
    <Rule xsi:type="RuleCollection" Mode="And">
      <Rule xsi:type="ItemIs" ItemType="Message" />
      <Rule xsi:type="ItemHasKNownEntity" EntityType="MeetingSuggestion" Highlight="all" />
      <Rule xsi:type="ItemHasKNownEntity" EntityType="Address" Highlight="none" />
    </Rule>
  </ExtensionPoint>

  <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead,AppointmentOrganizer,AppointmentAttendee -->
</DesktopFormFactor>

如何解决问题>我需要一种方法来实现此功能

解决方法

DetectedEntities仅受VersionOverrides V1_1支持,如果您使用的是V1_0,则会引发此错误。

包含的VersionOverrides元素必须具有xsi:type属性值,作为VersionOverridesV1_1。