2016-02-19 252 views
1

如果用戶在Outlook 2016上,我一直在爲Outlook加載項轉換清單以使用加載項命令在功能區中顯示圖標。不幸的是,我似乎無法在功能區顯示圖標。在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> 

回答

2

bt:String資源,爲TooltipDescription元素必須在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> 
+0

真棒!這解決了它。 –

相關問題