首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >导致外接程序安装问题的可锁定任务窗格操作

导致外接程序安装问题的可锁定任务窗格操作
EN

Stack Overflow用户
提问于 2017-04-07 08:27:01
回答 3查看 1.1K关注 0票数 1

我们正在尝试安装一个插件,该插件使用了版本覆盖1.1中引入的pinnable任务窗格操作。

错误信息为“无法安装此应用程序。清单文件不符合架构定义。命名空间”“http://schemas.microsoft.com/office/mailappversionoverrides/1.1”“中的元素”“Action”“在命名空间”“http://schemas.microsoft.com/office/mailappversionoverrides/1.1”“中的子元素”“SupportsPinning”“无效...”

我们使用的Exchange服务器版本是Exchange2016 CU1。

以前有没有人遇到过这种情况?

下面的清单样本...

代码语言:javascript
复制
<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>

EN

回答 3

Stack Overflow用户

发布于 2017-04-07 21:32:33

根据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

票数 2
EN

Stack Overflow用户

发布于 2017-04-10 22:53:03

Slava的答案是正确的,但可以使用更多的解释。documentation中的关键一行是:

“子VersionOverrides元素不从父元素继承任何值。”

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

票数 2
EN

Stack Overflow用户

发布于 2017-05-05 06:43:14

SupportsPinning是在Exchange2016 CU4中引入的,这就是它在CU1中不起作用的原因。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43267810

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档