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#'...
答案 0 :(得分:2)
要使用pinnable任务窗格功能,您需要将版本覆盖设置为1.1版。请参阅VersionOverrides element
上的详细信息编辑:
您可能忽略了这一点:“SupportsPinning元素是在VersionOverrides v1.1架构中定义的,因此您需要为v1.0和v1.1都包含VersionOverrides元素。”
请将您的清单文件与您可能在那里找到的演示清单进行比较:command-demo-manifest.xml