Outlook加载项Manifest文件报错:无效xsi:type 'FocusedInboxTab'
问题解决:Outlook加载项Manifest Schema验证错误(无效的FocusedInboxTab类型)
错误原因
你使用的FocusedInboxTab并非Outlook加载项Manifest Schema中定义的有效ExtensionPoint类型,这直接导致了Manifest文件不符合schema规范的验证错误。
修正方案
要在收件箱的邮件列表界面显示加载项,需使用**MessageListCommandSurface**这个合法的ExtensionPoint类型,并调整配置结构以符合schema要求。以下是修正后的配置代码:
<ExtensionPoint xsi:type="MessageListCommandSurface"> <CustomTab id="MyCustomTab"> <Label resid="TabLabel" /> <Icon> <bt:Image size="16" resid="Icon.16x16" /> <bt:Image size="32" resid="Icon.32x32" /> <bt:Image size="80" resid="Icon.80x80" /> </Icon> <Group id="MyCustomGroup"> <Label resid="GroupLabel" /> <Control xsi:type="Button" id="MyCustomButton"> <Label resid="ButtonLabel" /> <Icon> <bt:Image size="16" resid="Icon.16x16" /> <bt:Image size="32" resid="Icon.32x32" /> <bt:Image size="80" resid="Icon.80x80" /> </Icon> <Action xsi:type="ExecuteFunction"> <FunctionName>showMyAddin</FunctionName> </Action> </Control> </Group> <OfficeTab id="TabDefault" /> </CustomTab> </ExtensionPoint>
关键说明
MessageListCommandSurface是专门用于在邮件列表(如收件箱)界面添加自定义选项卡/控件的ExtensionPoint,支持Outlook 2016及以上版本、Outlook网页版。- 配置中需包含
CustomTab、Group和Control层级结构,每个元素的resid需对应Manifest中Resources部分定义的字符串资源。 - 若需要控制加载项的显示规则,可在
ExtensionPoint下添加Rule元素,例如限制仅在邮件类型为Message时显示:<Rule xsi:type="ItemIs" ItemType="Message" />
内容的提问来源于stack exchange,提问作者Rinku Gangishetty
相关产品推荐
相关产品推荐

