首页 文章

Pinnable任务窗格操作导致加载项安装问题

提问于
浏览
0

我们正在尝试安装一个加载项,该加载项利用版本覆盖1.1中引入的可执行任务窗格操作 .

错误显示“此应用程序可以't be installed. The manifest file doesn' t符合架构定义 . 命名空间中的元素'Action''http://schemas.microsoft.com/office/mailappversionoverrides/1.1 ' has invalid child element ' SupportsPinning ' in namespace ' 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>

3 回答

  • 2

    根据MSDN blog: Pinnable Taskpane in Outlook 2016,必须将新的VersionOverrides版本1.1添加到现有版本1.0中 . 您的示例清单完全缺少版本1.0覆盖 . 请按照示例command-demo-manifest.xml使新的可固定功能正常工作 .

    编辑:要使用VersionOverrides元素澄清,在实现多个版本时,请参阅VersionOverrides element: Implementing multiple versions

  • 1

    SupportsPinning是在Exchange 2016 CU4中引入的,这就是为什么它在CU1中不起作用的原因 .

  • 2

    斯拉瓦的答案是正确的,但可以使用更多的解释 . documentation的关键是:

    “子VersionOverrides元素不会从父级继承任何值 . ”

    在示例模式中,您单独复制了 <hosts> 元素 . 为了正常工作,它还必须从它的父级复制 <requirements> 元素 .

相关问题