Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Outlook 使Office 365加载项清单在部署时实际工作_Outlook_Office365_Office Addins - Fatal编程技术网

Outlook 使Office 365加载项清单在部署时实际工作

Outlook 使Office 365加载项清单在部署时实际工作,outlook,office365,office-addins,Outlook,Office365,Office Addins,我们是微软的合作伙伴(尽管我们从未从中获得任何价值)。我们有桌面办公VSTO插件,用于对我们出售给政府的文档进行分类,但由于其365云推送,这些文档已转移到在线。清单生成过程非常烦人。以前工作过的清单将停止任意工作。坦率地说,我们发现office 365插件开发过程令人失望。处理这堆东西就像是一个冷漠和不安的黑洞。这让我想起了2000年在服务器上编译我的C程序时,遇到了一些神秘的错误,不知道出了什么问题。如果我是负责人,我会建议我们的管理层放下这堆东西,找些别的东西来卖,因为这不值得让人头痛。多

我们是微软的合作伙伴(尽管我们从未从中获得任何价值)。我们有桌面办公VSTO插件,用于对我们出售给政府的文档进行分类,但由于其365云推送,这些文档已转移到在线。清单生成过程非常烦人。以前工作过的清单将停止任意工作。坦率地说,我们发现office 365插件开发过程令人失望。处理这堆东西就像是一个冷漠和不安的黑洞。这让我想起了2000年在服务器上编译我的C程序时,遇到了一些神秘的错误,不知道出了什么问题。如果我是负责人,我会建议我们的管理层放下这堆东西,找些别的东西来卖,因为这不值得让人头痛。多个开发人员和QA试图弄明白为什么一团xml不起作用,这让我们付出了巨大的代价

我们查看了约曼发电机的输出,并试图将其与我们自己的进行比较,但没有看到太大的差异。我们不断收到随机的1300X错误(这取决于我们所在的租户)。看了这里的代码后,我忍不住嘲笑你的愚蠢。您错误地选择了配置(清单)而不是代码。然后,您进行了一系列手工编码的xml处理,而不是创建一个基于XSD的通用模式编辑工具(该工具以前显然存在,但现在不存在)

也就是说。我知道您正在将您的内部问题导出到平台用户,但我需要销售软件,当我无法部署我们的加载项以便我们可以测试它时,我不能这样做。清单在为调试而手动插入时有效,但在部署时无效。有什么好处

有人能告诉我这个outlook清单有什么问题吗?为什么不部署呢

根据评论进行编辑: 请容忍我从我们的IT人员那里收集信息,因为我代表他们发布了这篇文章,因为他们感到沮丧,但由于之前的糟糕经历等原因,他们也犹豫是否在这里发布。清单有很多问题。word和outlook的错误不同。有时我们会在没有信息的情况下得到验证错误(即使加载项通过了验证工具)。其他时候它抛出13004(如果我没记错的话)。我怀疑验证工具在部署之前不会完全执行URL检查。一个丢失的帮助URL也使我们感到困惑。我将采取我们最新的清单,并与我提供的样本进行比较,并与下面的答案。似乎他们经过多次尝试和错误后终于让它工作了


2222222-1111-1111-1111-11111111 ABCD
1.0.0.0
香蕉
恩美
https://login.microsoftonline.com/
https://localhost:3000/
https://www.Fruitsolutions.com/
450
读写邮箱
假的
450
2222222-1111-1111-1111-11111111 ABCD
api://localhost:3000/Banana_CLASSIFIER_AZURE_APPLICATION_ID
Files.ReadWrite.All
邮件,阅读
Mail.ReadWrite
Mail.ReadWrite.Shared
脱机访问
openid
轮廓
Sites.ReadWrite.All
用户阅读

我在上面将您的清单安装到一个exchange帐户,它报告id无效,并且资源需要位于您的基本url(解决方案)下。我纠正了这些错误(使用虚拟值),然后将其上载到帐户,并将按钮加载到Outlook

<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MailApp">
  <Id>22222222-1111-1111-1111-11111111ABCD</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Banana</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Banana Classifier">
    <Override Locale="fr-CA" Value="Classifieur Banana" />
    <Override Locale="fr-FR" Value="Classifieur Banana" />
  </DisplayName>
  <Description DefaultValue="Fruit Banana Classifier">
    <Override Locale="fr-CA" Value="Classifieur Banana de Fruit" />
    <Override Locale="fr-FR" Value="Classifieur Banana de Fruit" />
  </Description>
  <IconUrl DefaultValue="https://localhost:3000/assets/Banana_32.png" />
  <HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/Banana_80.png" />
  <SupportUrl DefaultValue="https://www.Fruitsolutions.com/" />
  <AppDomains>
    <AppDomain>https://login.microsoftonline.com/</AppDomain>
    <AppDomain>https://localhost:3000/</AppDomain>
    <AppDomain>https://www.Fruitsolutions.com/</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Fruit.DesktopFunctionFile.Url" />
            <ExtensionPoint xsi:type="CustomPane">
              <RequestedHeight>450</RequestedHeight>
              <SourceLocation resid="Fruit.Taskpane.Url" />
              <Rule xsi:type="RuleCollection" Mode="Or">
                <Rule xsi:type="ItemIs" ItemType="Message" />
              </Rule>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="Fruit.Group1Label" />
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="Fruit.TaskpaneButton.Label" />
                    <Supertip>
                      <Title resid="Fruit.TaskpaneButton.Label" />
                      <Description resid="Fruit.TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Fruit.tpicon_16x16" />
                      <bt:Image size="32" resid="Fruit.tpicon_32x32" />
                      <bt:Image size="80" resid="Fruit.tpicon_80x80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Fruit.Taskpane.Url" />
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Fruit.tpicon_16x16" DefaultValue="https://www.Fruitsolutions.com/assets/Banana_16.png" />
          <bt:Image id="Fruit.tpicon_32x32" DefaultValue="https://www.Fruitsolutions.com/assets/Banana_32.png" />
          <bt:Image id="Fruit.tpicon_80x80" DefaultValue="https://www.Fruitsolutions.com/assets/Banana_80.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Fruit.Taskpane.Url" DefaultValue="https://www.Fruitsolutions.com/index.html" />
          <bt:Url id="Fruit.GetStarted.LearnMoreUrl" DefaultValue="https://www.Fruitsolutions.com/" />
          <bt:Url id="Fruit.DesktopFunctionFile.Url" DefaultValue="https://www.Fruitsolutions.com/function-file/function-file.html" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Fruit.TaskpaneButton.Label" DefaultValue="Banana Classifier">
            <bt:Override Locale="fr-CA" Value="Classifieur Banana" />
            <bt:Override Locale="fr-FR" Value="Classifieur Banana" />
          </bt:String>
          <bt:String id="Fruit.Group1Label" DefaultValue="Fruit">
            <bt:Override Locale="fr-CA" Value="Fruit" />
            <bt:Override Locale="fr-FR" Value="Fruit" />
          </bt:String>
          <bt:String id="Fruit.GetStarted.Title" DefaultValue="Fruit Banana Classifier">
            <bt:Override Locale="fr-CA" Value="Classifieur Banana de Fruit" />
            <bt:Override Locale="fr-FR" Value="Classifieur Banana de Fruit" />
          </bt:String>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="Fruit.TaskpaneButton.Tooltip" DefaultValue="Click to Show the Fruit Banana Classifier">
            <bt:Override Locale="fr-CA" Value="Cliquer pour afficher le Classifieur Banana" />
            <bt:Override Locale="fr-FR" Value="Cliquer pour afficher le Classifieur Banana" />
          </bt:String>
          <bt:String id="Fruit.GetStarted.Description" DefaultValue="The Fruit Banana Classifier Add-in loaded successfully. Click the 'Banana Classifier' button to get started.">
            <bt:Override Locale="fr-CA" Value="Le complément Classifieur Banana a été chargé avec succès.  Veuillez cliquer sur le bouton 'Classifieur Banana' pour débuter." />
            <bt:Override Locale="fr-FR" Value="Le complément Classifieur Banana a été chargé avec succès.  Veuillez cliquer sur le bouton 'Classifieur Banana' pour débuter." />
          </bt:String>
        </bt:LongStrings>
      </Resources>
      <WebApplicationInfo>
        <Id>22222222-1111-1111-1111-11111111ABCD</Id>
        <Resource>https://www.Fruitsolutions.com/Banana_CLASSIFIER_AZURE_APPLICATION_ID</Resource>
        <Scopes>
          <Scope>Files.ReadWrite.All</Scope>
          <Scope>Mail.Read</Scope>
          <Scope>Mail.ReadWrite</Scope>
          <Scope>Mail.ReadWrite.Shared</Scope>
          <Scope>offline_access</Scope>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
          <Scope>Sites.ReadWrite.All</Scope>
          <Scope>User.Read</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

2222222-1111-1111-1111-11111111 ABCD
1.0.0.0
香蕉
恩美
https://login.microsoftonline.com/
https://localhost:3000/
https://www.Fruitsolutions.com/
450
读写邮箱
假的
450
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="MailApp">
  <Id>22222222-1111-1111-1111-11111111ABCD</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Banana</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Banana Classifier">
    <Override Locale="fr-CA" Value="Classifieur Banana" />
    <Override Locale="fr-FR" Value="Classifieur Banana" />
  </DisplayName>
  <Description DefaultValue="Fruit Banana Classifier">
    <Override Locale="fr-CA" Value="Classifieur Banana de Fruit" />
    <Override Locale="fr-FR" Value="Classifieur Banana de Fruit" />
  </Description>
  <IconUrl DefaultValue="https://localhost:3000/assets/Banana_32.png" />
  <HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/Banana_80.png" />
  <SupportUrl DefaultValue="https://www.Fruitsolutions.com/" />
  <AppDomains>
    <AppDomain>https://login.microsoftonline.com/</AppDomain>
    <AppDomain>https://localhost:3000/</AppDomain>
    <AppDomain>https://www.Fruitsolutions.com/</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.3">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="Fruit.DesktopFunctionFile.Url" />
            <ExtensionPoint xsi:type="CustomPane">
              <RequestedHeight>450</RequestedHeight>
              <SourceLocation resid="Fruit.Taskpane.Url" />
              <Rule xsi:type="RuleCollection" Mode="Or">
                <Rule xsi:type="ItemIs" ItemType="Message" />
              </Rule>
            </ExtensionPoint>
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadGroup">
                  <Label resid="Fruit.Group1Label" />
                  <Control xsi:type="Button" id="msgReadOpenPaneButton">
                    <Label resid="Fruit.TaskpaneButton.Label" />
                    <Supertip>
                      <Title resid="Fruit.TaskpaneButton.Label" />
                      <Description resid="Fruit.TaskpaneButton.Tooltip" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="Fruit.tpicon_16x16" />
                      <bt:Image size="32" resid="Fruit.tpicon_32x32" />
                      <bt:Image size="80" resid="Fruit.tpicon_80x80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="Fruit.Taskpane.Url" />
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="Fruit.tpicon_16x16" DefaultValue="https://www.Fruitsolutions.com/assets/Banana_16.png" />
          <bt:Image id="Fruit.tpicon_32x32" DefaultValue="https://www.Fruitsolutions.com/assets/Banana_32.png" />
          <bt:Image id="Fruit.tpicon_80x80" DefaultValue="https://www.Fruitsolutions.com/assets/Banana_80.png" />
        </bt:Images>
        <bt:Urls>
          <bt:Url id="Fruit.Taskpane.Url" DefaultValue="https://www.Fruitsolutions.com/index.html" />
          <bt:Url id="Fruit.GetStarted.LearnMoreUrl" DefaultValue="https://www.Fruitsolutions.com/" />
          <bt:Url id="Fruit.DesktopFunctionFile.Url" DefaultValue="https://www.Fruitsolutions.com/function-file/function-file.html" />
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="Fruit.TaskpaneButton.Label" DefaultValue="Banana Classifier">
            <bt:Override Locale="fr-CA" Value="Classifieur Banana" />
            <bt:Override Locale="fr-FR" Value="Classifieur Banana" />
          </bt:String>
          <bt:String id="Fruit.Group1Label" DefaultValue="Fruit">
            <bt:Override Locale="fr-CA" Value="Fruit" />
            <bt:Override Locale="fr-FR" Value="Fruit" />
          </bt:String>
          <bt:String id="Fruit.GetStarted.Title" DefaultValue="Fruit Banana Classifier">
            <bt:Override Locale="fr-CA" Value="Classifieur Banana de Fruit" />
            <bt:Override Locale="fr-FR" Value="Classifieur Banana de Fruit" />
          </bt:String>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="Fruit.TaskpaneButton.Tooltip" DefaultValue="Click to Show the Fruit Banana Classifier">
            <bt:Override Locale="fr-CA" Value="Cliquer pour afficher le Classifieur Banana" />
            <bt:Override Locale="fr-FR" Value="Cliquer pour afficher le Classifieur Banana" />
          </bt:String>
          <bt:String id="Fruit.GetStarted.Description" DefaultValue="The Fruit Banana Classifier Add-in loaded successfully. Click the 'Banana Classifier' button to get started.">
            <bt:Override Locale="fr-CA" Value="Le complément Classifieur Banana a été chargé avec succès.  Veuillez cliquer sur le bouton 'Classifieur Banana' pour débuter." />
            <bt:Override Locale="fr-FR" Value="Le complément Classifieur Banana a été chargé avec succès.  Veuillez cliquer sur le bouton 'Classifieur Banana' pour débuter." />
          </bt:String>
        </bt:LongStrings>
      </Resources>
      <WebApplicationInfo>
        <Id>22222222-1111-1111-1111-11111111ABCD</Id>
        <Resource>https://www.Fruitsolutions.com/Banana_CLASSIFIER_AZURE_APPLICATION_ID</Resource>
        <Scopes>
          <Scope>Files.ReadWrite.All</Scope>
          <Scope>Mail.Read</Scope>
          <Scope>Mail.ReadWrite</Scope>
          <Scope>Mail.ReadWrite.Shared</Scope>
          <Scope>offline_access</Scope>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
          <Scope>Sites.ReadWrite.All</Scope>
          <Scope>User.Read</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>