【问题标题】:How do I limit the set of supported applications of an Excel add-in for publishing to AppSource?如何限制 Excel 加载项的受支持应用程序集以发布到 AppSource?
【发布时间】:2020-08-05 07:23:39
【问题描述】:

我正在尝试将 Excel 加载项发布到 AppSource,这需要我在 Microsoft 合作伙伴中心上传清单文件。上传后,清单通过检查并显示以下消息:

清单检查已通过分析您的包裹后,我们有 确定您的产品当前定位于以下 应用程序和平台:

  • Excel for iPad
  • Excel 2016 for Mac
  • Excel 2013 或更高版本
  • Excel 2016 或更高版本
  • Excel 在线

Office 应用程序、平台和操作系统是 由规定的要求和 API 确定 显现。有关详细信息,请参阅要求。我们将验证您的 如果您选中产品上的 iOS 复选框,则 iOS 上的产品 设置并提供您的 Apple ID。

我之前尝试过完成认证过程,但收到了外接程序在 Excel 2013 中无法完全运行的评论。这是意料之中的,因为外接程序使用的是 Excel JavaScript API。根据文档(例如 herehere),Excel JavaScript API 是随 Office 2016 引入的,因此可以在 Excel 2016 和更高版本的 Windows 上运行。根据this part of the documentation,我需要在清单文件的Requirements 元素中说明这个API 的使用。我通过在清单中包含以下部分来做到这一点:

<Requirements>
      <bt:Sets DefaultMinVersion="1.1">
            <bt:Set Name="ExcelAPI" MinVersion="1.1"/>
      </bt:Sets>
</Requirements>

不过,经过分析,消息指出该加载项还针对 Excel 2013。

【问题讨论】:

    标签: xml office-js office-addins excel-addins appsource


    【解决方案1】:

    您是否在本地验证了您的清单?我猜您的清单存在一些问题,导致需求集没有生效。下面的链接是关于如何验证清单的,它会在验证完成后告诉您插件支持的应用程序和平台

    https://docs.microsoft.com/en-us/office/dev/add-ins/testing/troubleshoot-manifest

    以下是我在本地尝试的清单的一部分,效果很好。

    【讨论】:

    • 感谢您的意见@MandytMSFT。我已经在本地验证了清单,并且它通过了验证。本地验证也错误地将 Excel 2013 提取为支持的平台之一:Acceptance Test Completed: Acceptance test service has finished checking provided add-in. (link: undefined) Based on the requirements specified in your manifest, your add-in can run on the following platforms; your add-in will be tested on these platforms when you submit it to the Office Store: - Excel for iPad - Excel 2016 for Mac - Excel 2013 or later - Excel 2016 or later - Excel Online
    • 能否请您尝试将需求部分移动到与我相同的位置?我注意到你的分享中有 标签,怀疑你把要求放错了地方。
    【解决方案2】:

    我建议您可以根据 excel API 选择最小版本,1.8 会是一个不错的版本,因此它从 Excel 2019 支持开始:

    <Requirements>
       <Sets DefaultMinVersion="1.1">
          <Set Name="ExcelAPI " MinVersion="1.8"/>
           </Sets>
    </Requirements>
    

    【讨论】:

    • 加载项应该从 Excel 2016 支持开始,这就是我包含最低版本 1.1 的原因。 Here 声明 Office 2016 仅支持 ExcelAPI 1.1 要求集。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-18
    • 2011-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-24
    相关资源
    最近更新 更多