Outlook 2016 功能区中未显示 Outlook 加载项命令

Outlook add-in command not showing in Outlook 2016 ribbon

如果用户使用的是 Outlook 2016,我一直在转换 Outlook 加载项的清单以使用加载项命令在功能区中显示图标。不幸的是,我似乎无法获得图标出现在功能区中。

加载项在其他客户端上运行良好。

这是我使用的清单文件的匿名版本:

<?xml version="1.0" encoding="utf-8"?>
<OfficeApp xsi:type="MailApp"
           xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
           xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0">
  <Id>892bf749-7601-428e-a658-1d32b883a712</Id>
  <Version>1.0.0</Version>
  <ProviderName>My Name</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="My Addin" />
  <Description DefaultValue="Description goes here." />
  <IconUrl DefaultValue="https://myaddin-host.com/icon.png" />
  <HighResolutionIconUrl DefaultValue="https://myaddin-host.com/icon.png" />
  <SupportUrl DefaultValue="http://www.sydience.com/?page_id=7" />
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="MailBox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://myaddin-host.com/v1.1/AppRead/Home/Home.html" />
        <RequestedHeight>350</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://myaddin-host.com/v1.1/AppRead/Home/Home.html" />
        <RequestedHeight>350</RequestedHeight>
      </TabletSettings>
      <PhoneSettings>
        <SourceLocation DefaultValue="https://myaddin-host.com/v1.1/AppRead/Home/Home.html" />
      </PhoneSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="And">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Description resid="residDescription" />
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadMyAddinGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Tooltip resid="paneReadTipTitle" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="myaddin-icon-16" />
                    <bt:Image size="32" resid="myaddin-icon-32" />
                    <bt:Image size="80" resid="myaddin-icon-80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="readTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources> 
      <bt:Images>
        <bt:Image id="myaddin-icon-16" DefaultValue="https://myaddin-host.com/v1.1/Images/myaddin-icon-16.png" />
        <bt:Image id="myaddin-icon-32" DefaultValue="https://myaddin-host.com/v1.1/Images/myaddin-icon-32.png" />
        <bt:Image id="myaddin-icon-80" DefaultValue="https://myaddin-host.com/v1.1/Images/myaddin-icon-80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="readTaskPaneUrl" DefaultValue="https://myaddin-host.com/v1.1/AppRead/Home/Home.html" />
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="residDescription" DefaultValue="My Outlook add-in" />
        <bt:String id="groupLabel" DefaultValue="My Addin" />
        <bt:String id="paneReadButtonLabel" DefaultValue="Show Pan" />
        <bt:String id="paneReadTipTitle" DefaultValue="More text here" />
        <bt:String id="paneReadSuperTipTitle" DefaultValue="More text here" />
        <bt:String id="paneReadSuperTipDescription" DefaultValue="More text here" />
      </bt:ShortStrings>
   </Resources>
  </VersionOverrides>
</OfficeApp>

用于 TooltipDescription 元素的 bt:String 资源必须位于 bt:LongStrings 元素中。尝试替换:

<bt:ShortStrings>
  <bt:String id="residDescription" DefaultValue="My Outlook add-in" />
  <bt:String id="groupLabel" DefaultValue="My Addin" />
  <bt:String id="paneReadButtonLabel" DefaultValue="Show Pan" />
  <bt:String id="paneReadTipTitle" DefaultValue="More text here" />
  <bt:String id="paneReadSuperTipTitle" DefaultValue="More text here" />
  <bt:String id="paneReadSuperTipDescription" DefaultValue="More text here" />
</bt:ShortStrings>

与:

<bt:ShortStrings>
  <bt:String id="residDescription" DefaultValue="My Outlook add-in" />
  <bt:String id="groupLabel" DefaultValue="My Addin" />
  <bt:String id="paneReadButtonLabel" DefaultValue="Show Pan" />
  <bt:String id="paneReadSuperTipTitle" DefaultValue="More text here" />
</bt:ShortStrings>
<bt:LongStrings>
  <bt:String id="paneReadTipTitle" DefaultValue="More text here" />
  <bt:String id="paneReadSuperTipDescription" DefaultValue="More text here" />
</bt:LongStrings>