I am following this help document
为了尝试并弄清楚如何固定任务窗格,我添加了Action,如此处的Manifest中所示。
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgReadCmdGroup">
<Label resid="groupLabel"/>
<Control xsi:type="Button" id="msgReadPaneButton">
<Label resid="msgReadPaneButtonLabel"/>
<Supertip>
<Title resid="msgReadPaneButtonTitle"/>
<Description resid="msgReadPaneButtonDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon-16"/>
<bt:Image size="32" resid="icon-32"/>
<bt:Image size="80" resid="icon-80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="readPaneUrl"/>
<SupportsPinning>true</SupportsPinning>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>但是,当我将它添加到我的outlook中进行测试时,我得到了以下错误...
This app can't be installed. The manifest file doesn't conform to the schema definition. The element 'Action' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides' has invalid child element 'SupportsPinning' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides'...
我已经尝试搜索错误本身,但找不到任何可能的解决方案,为什么它不工作。
编辑:
我发现我需要将版本设置为1.1,我尝试了:
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
从那里得到了..。
This app can't be installed. The manifest file doesn't conform to the schema definition. The element 'OfficeApp' in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1' has invalid child element 'VersionOverrides' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides/1.1'. List of possible elements expected: 'VersionOverrides' in namespace 'http://schemas.microsoft.com/office/mailappversionoverrides' as well as any element in namespace 'http://www.w3.org/2000/09/xmldsig#'...
发布于 2017-02-11 04:56:03
要使用pinnable任务窗格功能,您需要将版本覆盖设置为版本1.1,请访问VersionOverrides element查看更多信息
编辑:
您可能没有注意到这一点:“SupportsPinning元素是在VersionOverrides v1.1模式中定义的,因此需要在v1.0和v1.1中都包含一个VersionOverrides元素。”
请将您的清单文件与您可以在那里找到的演示清单进行比较:command-demo-manifest.xml
https://stackoverflow.com/questions/42145867
复制相似问题