[英]Office add-in manifest file passes 'npm run validate' but fails when side loading to Office Web
[英]Office manifest passes with validate-office-addin but fails when uploading to Office 365
我试图将控件按钮添加到我的加载项。 我没有更改大部分文件,因此仅包含清单的选定部分。 即使未对第二个Control进行注释,清单也会根据validate-office-addin进行传递,但是当尝试上载到Office 365进行测试时,我被告知清单无效。 几个小时以来,我一直对此感到震惊,希望能得到一些帮助。
<Control xsi:type="Button" id="Contoso.TaskpaneButton">
<Label resid="Contoso.TaskpaneButton.Label" />
<Supertip>
<Title resid="Contoso.TaskpaneButton.Label" />
<Description resid="Contoso.TaskpaneButton.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
</Icon>
<Action xsi:type="ShowTaskpane">
<TaskpaneId>ButtonId1</TaskpaneId>
<SourceLocation resid="Contoso.Taskpane.Url" />
</Action>
</Control>
<Control xsi:type="Button" id="Contoso.RefreshButton">
<Label resid="Contoso.RefreshButton.Label" />
<Supertip>
<Title resid="Contoso.RefreshButton.Label" />
<Description resid="Contoso.RefreshButton.Tooltip" />
</Supertip>
<Icon>
<bt:Image size="16" resid="Contoso.tpicon_16x16" />
<bt:Image size="32" resid="Contoso.tpicon_32x32" />
<bt:Image size="80" resid="Contoso.tpicon_80x80" />
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>refreshAllReports</FunctionName>
</Action>
</Control>
原来是清单上的错字
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.