指定"仅限Excel"在清单文件中

时间:2016-06-25 02:27:16

标签: ms-office office-js

我几天前提交了一个Excel加载项。今天,我收到了变更要求:

  

1.2您的应用或加载项必须按照您的描述工作,且不得处于未完成状态。

     

您的加载项声称可以在Word,PowerPoint和Project客户端中使用,但它看起来并不完全正常,因为除了Excel客户端之外,加载项和提到的客户端之间似乎没有交互。请确保您的加载项适用于所有已声明的应用程序。   如果您不打算支持Word,PowerPoint和Project客户端,请在加载项清单中进行相关更改。

我不知道(在清单文件中)指定此加载项的位置仅适用于仅限Excel 。有人可以帮忙吗?

1 个答案:

答案 0 :(得分:3)

在你的清单中,会有一个类似的部分:

{
  "customSchemas": {
    "SSO": {
      "role": [
        {
          "customType": "AWSaccount1ReadOnly", 
          "type": "work", 
          "value": "arn:aws:iam::12345678910:role/gapps_readonly,arn:aws:iam::12345678910:saml-provider/GoogleApps"
        }, 
        {
          "customType": "AWSaccount1Admin", 
          "type": "work", 
          "value": "arn:aws:iam::12345678910:role/gapps_admin,arn:aws:iam::12345678910:saml-provider/GoogleApps"
        }, 
        {
          "customType": "AWSaccount2ReadOnly", 
          "type": "work", 
          "value": "arn:aws:iam::5101520253035:role/gapps_readonly,arn:aws:iam::5101520253035:saml-provider/GoogleApps"
        }, 
        {
          "customType": "AWSaccount2Admin", 
          "type": "work", 
          "value": "arn:aws:iam::5101520253035:role/gapps_admin,arn:aws:iam::5101520253035:saml-provider/GoogleApps"
        }, 
        {
          "customType": "AWSaccount3ReadOnly", 
          "type": "work", 
          "value": "arn:aws:iam::3691215182124:role/gapps_readonly,arn:aws:iam::3691215182124:saml-provider/GoogleApps"
        }, 
        {
          "customType": "AWSaccount3Admin", 
          "type": "work", 
          "value": "arn:aws:iam::3691215182124:role/gapps_admin,arn:aws:iam::3691215182124:saml-provider/GoogleApps"
        }
      ]
    }
  }
}

删除除“工作簿”之外的所有<Hosts> <Host Name="Workbook" /> <Host Name="Presentation" /> <Host Name="Project" /> <Host Name="Document" /> </Hosts> 行,您将全部设置。

有关详细信息,请参阅https://dev.office.com/docs/add-ins/overview/add-in-manifests