2017-04-07 72 views
0

我們正在嘗試安裝一個加載項,該插件使用版本替代1.1中引入的pinnable任務窗格操作。引起加載項安裝問題的Pinnable任務窗格操作

錯誤讀取 「無法安裝這個應用程序。清單文件不符合模式定義。命名空間‘http://schemas.microsoft.com/office/mailappversionoverrides/1.1’元素‘行動’在命名空間無效子元素'SupportsPinning'http://schemas.microsoft.com/office/mailappversionoverrides/1.1 ...「

我們所在的Exchange服務器版本是Exchange 2016 CU1。

有沒有人遇到過這種情況?

下面的清單的樣本...

<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" 
 
     xsi:type="VersionOverridesV1_0"> 
 

 
    <Requirements> 
 
     <bt:Sets DefaultMinVersion="1.4"> 
 
      <bt:Set Name="Mailbox" /> 
 
     </bt:Sets> 
 
    </Requirements> 
 

 
    <Hosts> 
 
     <Host xsi:type="MailHost"> 
 

 
      <DesktopFormFactor> 
 
       <!-- Message read --> 
 
       <ExtensionPoint xsi:type="MessageReadCommandSurface"> 
 
        <OfficeTab id="TabDefault"> 
 
         <Group id="msgreadTabMessage.grp1"> 
 
          <Label resid="groupLabel" /> 
 

 
          <Control xsi:type="Button" id="msgreadTabMessage.grp1.btnView"> 
 
           <Label resid="buttonLabel" /> 
 
           <Supertip> 
 
            <Title resid="superTipTitle" /> 
 
            <Description resid="superTip" /> 
 
           </Supertip> 
 
           <Icon> 
 
            <bt:Image size="16" resid="icon1_16x16" /> 
 
            <bt:Image size="32" resid="icon1_32x32" /> 
 
            <bt:Image size="80" resid="icon1_80x80" /> 
 
           </Icon> 
 
           <Action xsi:type="ShowTaskpane"> 
 
            <SourceLocation resid="taskPaneUrl" /> 
 
           </Action> 
 
          </Control> 
 
         </Group> 
 
        </OfficeTab> 
 
       </ExtensionPoint> 
 
      </DesktopFormFactor> 
 
     </Host> 
 
    </Hosts>      
 

 
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1"> 
 
     <Hosts> 
 
      <Host xsi:type="MailHost"> 
 
       <DesktopFormFactor> 
 
        <!-- Message read --> 
 
        <ExtensionPoint xsi:type="MessageReadCommandSurface"> 
 
         <OfficeTab id="TabDefault"> 
 
          <Group id="msgreadTabMessage.grp1"> 
 
           <Label resid="groupLabel" /> 
 

 
           <Control xsi:type="Button" id="msgreadTabMessage.grp1.btnView"> 
 
            <Label resid="buttonLabel" /> 
 
            <Supertip> 
 
             <Title resid="superTipTitle" /> 
 
             <Description resid="superTip" /> 
 
            </Supertip> 
 
            <Icon> 
 
             <bt:Image size="16" resid="icon1_16x16" /> 
 
             <bt:Image size="32" resid="icon1_32x32" /> 
 
             <bt:Image size="80" resid="icon1_80x80" /> 
 
            </Icon> 
 
            <Action xsi:type="ShowTaskpane"> 
 
             <SourceLocation resid="taskPaneUrl" /> 
 
             <SupportsPinning>true</SupportsPinning> 
 
            </Action> 
 
           </Control> 
 
          </Group> 
 
         </OfficeTab> 
 
        </ExtensionPoint> 
 
       </DesktopFormFactor> 
 
      </Host> 
 
     </Hosts> 
 
    </VersionOverrides> 
 
</VersionOverrides>

回答

1

MSDN blog: Pinnable Taskpane in Outlook 2016新VersionOverrides 1.1版已被添加到現有的1.0版本。您的示例清單完全缺少版本1.0覆蓋。請按照示例command-demo-manifest.xml來使新的pinnable功能工作。

編輯: 要使用VersionOverrides元素澄清,實現多個版本時,請參照VersionOverrides element: Implementing multiple versions

+0

您是指第一行的清單? 版本覆蓋1.1部分位於版本覆蓋1.0部分。 奇怪的部分是,它在我們測試CU4上的Exchange 2016服務器上的清單時起作用。 –

2

斯拉瓦的答案是正確的,但可以使用更多一點的解釋。 documentation的關鍵字是:

「子版本的VersionOverrides元素不會繼承父級的任何值。

在您的示例模式中,您單獨複製了<hosts>元素。爲了正常工作,它還必須從其父項中複製<requirements>元素。

+1

是否有任何理由這樣的清單(沒有主機元素)將在Exchange 2016 CU2 +上工作?我們在那裏取得了成功。 Exchange 2016 CU1有什麼特別之處? 此外需求元素是可選的,希望這不應該是能夠安裝應用程序的阻止者。 –

2

SupportsPinning是在Exchange 2016 CU4中引入的,這就是爲什麼它不適用於CU1。

+0

所以這個supportspinning屬性是不是向後兼容? 它可以在Exchange 2013中工作嗎? –

+0

如果您的清單包含「SupportsPinning」,則可以將其安裝在Exchange 2013中,但是它對插件沒有任何影響,這意味着加載項不會是可媲美的。 –

+0

聽到這真是太棒了! 只是好奇,爲什麼不會有類似的情況適用於以前的Exchange 2016 CU,其中屬性將不會影響加載項,並且之前的CU只查看VersionOverridesV1_0部分中相關的xml模式? –