Office 清单通过 validate-office-addin 但在上传到 Office 365 时失败
Office manifest passes with validate-office-addin but fails when uploading to Office 365
我正在尝试向我的加载项添加一个控制按钮。我没有更改文件的大部分内容,因此我只包含清单的选定部分。即使第二个控件未注释,清单也会根据 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>
原来是清单下方的错字
我正在尝试向我的加载项添加一个控制按钮。我没有更改文件的大部分内容,因此我只包含清单的选定部分。即使第二个控件未注释,清单也会根据 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>
原来是清单下方的错字