【问题标题】:'Manifest file doesn't conform to the schema definition' when uploading Outlook add-in manifest上传 Outlook 加载项清单时出现“清单文件不符合架构定义”
【发布时间】:2016-01-23 22:07:24
【问题描述】:
【问题讨论】:
标签:
office365
outlook-web-addins
【解决方案1】:
简答:确保Label 元素出现在Group 元素内的所有Group 元素之后。
Office 365 最近对清单文件启用了额外的架构验证,并且由于为 CustomTab 元素定义架构的方式,它预计 Label 会紧随其后。
换句话说,带有 CustomTab 元素的清单将触发错误:
<CustomTab id="TabCustom1">
<Label resid="customTabLabel1"/>
<Group id="group1">
<Label resid="groupLabel1"/>
<Control xsi:type="Button" id="uilessButton1">
<Label resid="uilessButtonLabel1"/>
<Supertip>
<Title resid="uilessButtonSuperTipTitle1"/>
<Description resid="uilessButtonSuperTipDesc1"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="uilessButtonIcon1-16"/>
<bt:Image size="32" resid="uilessButtonIcon1-32"/>
<bt:Image size="80" resid="uilessButtonIcon1-80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>buttonFunction1</FunctionName>
</Action>
</Control>
</Group>
</CustomTab>
改成这样可以解决错误:
<CustomTab id="TabCustom1">
<Group id="group1">
<Label resid="groupLabel1"/>
<Control xsi:type="Button" id="uilessButton1">
<Label resid="uilessButtonLabel1"/>
<Supertip>
<Title resid="uilessButtonSuperTipTitle1"/>
<Description resid="uilessButtonSuperTipDesc1"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="uilessButtonIcon1-16"/>
<bt:Image size="32" resid="uilessButtonIcon1-32"/>
<bt:Image size="80" resid="uilessButtonIcon1-80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>buttonFunction1</FunctionName>
</Action>
</Control>
</Group>
<Label resid="customTabLabel1"/>
</CustomTab>