【问题标题】:Problems with AppDomains element in Excel Add-in task pane XML manifestExcel 加载项任务窗格 XML 清单中的 AppDomains 元素问题
【发布时间】:2020-06-23 01:30:46
【问题描述】:

我没有在 Excel 加载项任务窗格清单中的 <AppDomains/> 元素内使用 <AppDomain/> 子元素指定应用程序域。我不能留下未指定的<AppDomain/>,因为这会在验证时产生错误:

包接受验证错误:XML Schema Validation Error 在 XML Schema 验证过程中发现错误。代码:“http://schemas.microsoft.com/office/appforoffice/1.1:AppDomain”元素无效 - 值“”根据其数据类型“http://schemas.microsoft.com/office/appforoffice”无效/1.1:LongString' - 实际长度小于 MinLength 值。行:16 列:10

鉴于the latter has property minOccurs="1",我可能无法删除<AppDomain/> 并离开<AppDomains/>

我发现 this manifest example 省略了 <AppDomains/><AppDomain/>。但是,我不知道这是否是官方的做法。我没有找到描述 <AppDomains/> 是否是 Office 任务窗格清单的强制性元素以及如果没有要列出的内容应该做什么的文档。

【问题讨论】:

    标签: office-js office-addins


    【解决方案1】:

    <AppDomains> 不是强制性的。您可以在此处找到所需元素的列表:Manifest required elements。此外,清单的官方 XSD 在这里:MS-OWEMXML

    【讨论】:

    • 谢谢。这是有道理的
    猜你喜欢
    • 2020-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多