Office js Outlook加载项-从Outlook关闭Windows应用商店后,加载的自定义加载项将消失

Office js Outlook加载项-从Outlook关闭Windows应用商店后,加载的自定义加载项将消失,office-js,outlook-web-addins,Office Js,Outlook Web Addins,非常困惑 我正在开发一个Outlook加载项,以从“撰写电子邮件”窗口上的按钮打开一个窗格 我已经在outlook.com上加载了一个测试帐户,它工作得非常好 当我通过直接按文件加载清单XML将加载项侧向加载到Outlook桌面时,系统会接受它 但是,当我关闭Microsoft加载项商店窗口时,加载项不在撰写电子邮件中,当我管理加载项时,加载的清单不在那里 外接程序设计用于从AWS上托管的web服务器获取所有图标和iFrame HTML。我已经在下面附上了清单,上面没有我认为敏感的所有身份信息和

非常困惑

我正在开发一个Outlook加载项,以从“撰写电子邮件”窗口上的按钮打开一个窗格

我已经在outlook.com上加载了一个测试帐户,它工作得非常好

当我通过直接按文件加载清单XML将加载项侧向加载到Outlook桌面时,系统会接受它

但是,当我关闭Microsoft加载项商店窗口时,加载项不在撰写电子邮件中,当我管理加载项时,加载的清单不在那里

外接程序设计用于从AWS上托管的web服务器获取所有图标和iFrame HTML。我已经在下面附上了清单,上面没有我认为敏感的所有身份信息和其他信息

几张便条

系统不会拒绝我的加载项。我在Outlook Desktop中看到加载项已成功加载到应用商店的“自定义”部分。我一关上窗户它就消失了

外接程序在Outlook.com上运行。通过所有质量保证测试

我假设应用程序出于某种原因正在硬删除外接程序?如果有办法从Outlook解决这些问题,我很想知道。这是我的第一个outlook应用程序,通常是一个移动开发人员

Outlook for Mac Desktop和Outlook for PC Desktop也会出现同样的问题

请帮忙

    <?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"

  <!--Version. Updates from the store only get triggered if there is a version change. -->
  <Version>1.0.0.0</Version>
  <ProviderName>Brgn.Tech</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. -->
  <DisplayName DefaultValue="Brgn.Tech" />
  <Description DefaultValue="Easily access your Brgn.Tech Tenant Information from your outlook account!"/>

  <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->
  <IconUrl DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png" />
  <HighResolutionIconUrl DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>


  <!--If you plan to submit this add-in to the Office Store, uncomment the SupportUrl element below-->
  <SupportUrl DefaultValue="https://hello.brgn.tech" />

  <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>AppDomain1</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
    <AppDomain>AppDomain3</AppDomain>
  </AppDomains>
  <!--End Basic Settings. -->

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:5001/outlook"/>
      </DesktopSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>

  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Requirements>
      <bt:Sets DefaultMinVersion="1.3">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">

        <DesktopFormFactor>

          <!-- Message Read -->
          <ExtensionPoint xsi:type="MessageComposeCommandSurface">
            <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
            <OfficeTab id="TabDefault">
              <!-- Up to 6 Groups added per Tab -->
              <Group id="msgReadGroup">
                <Label resid="groupLabel" />
                <!-- Launch the add-in : task pane button -->
                <Control xsi:type="Button" id="msgReadOpenPaneButton">
                  <Label resid="paneReadButtonLabel" />
                  <Supertip>
                    <Title resid="paneReadSuperTipTitle" />
                    <Description resid="paneReadSuperTipDescription" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="icon16" />
                    <bt:Image size="32" resid="icon32" />
                    <bt:Image size="80" resid="icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="messageComposeEmail" />
                  </Action>
                </Control>
                <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
              </Group>
            </OfficeTab>
          </ExtensionPoint>
          <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <Resources>
      <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>
        <bt:Image id="icon32" DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>
        <bt:Image id="icon80" DefaultValue="https://localhost:5001/brand-assets/brgnTechIcon.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="messageComposeEmail" DefaultValue="https://localhost:5001/outlook"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="My Add-in Group"/>
        <bt:String id="customTabLabel"  DefaultValue="My Add-in Tab"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Display all properties"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties. This is an example of a button that opens a task pane."/>
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <WebApplicationInfo>
        <Scopes>
          <Scope>user.readwrite</Scope>
          <Scope>calendars.readwrite</Scope>
          <Scope>contacts.readwrite</Scope>
          <Scope>mail.readwrite</Scope>
          <Scope>mail.send</Scope>
          <Scope>mailboxsettings.readwrite</Scope>
        </Scopes>
      </WebApplicationInfo>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

问题似乎出在底部的v1_1版本覆盖中。在我删除它之后,我能够纠正这个问题

问题似乎出在底部的v1_1版本覆盖中。在我删除它之后,我能够纠正这个问题

您的清单在VerisonOverrides 1.1中只有WebApplicationInfo节点。如果客户端支持VerisonOverrides 1.1,我们将选择1.1下的所有内容,而1.0下的任何内容都不会显示在客户端上。如果需要MessageComposecCommandSurface,还需要复制VersionOverrides 1.0到1.1下的所有内容。这样,支持VerisonOverrides 1.1的客户端将呈现命令界面和webapplicationinfo节点,而不支持VersionOverrides 1.1的客户端将退回到1.0以仅显示compose命令界面。它在OWA中工作的事实是我们将要调查的。现在,为了解决这个问题,只需将VersionOverride 1.0中的所有内容复制到1.1,您就可以看到一切正常运行。

您的清单在VerisonOverrides 1.1中只有WebApplicationInfo节点。如果客户端支持VerisonOverrides 1.1,我们将选择1.1下的所有内容,而1.0下的任何内容都不会显示在客户端上。如果需要MessageComposecCommandSurface,还需要复制VersionOverrides 1.0到1.1下的所有内容。这样,支持VerisonOverrides 1.1的客户端将呈现命令界面和webapplicationinfo节点,而不支持VersionOverrides 1.1的客户端将退回到1.0以仅显示compose命令界面。它在OWA中工作的事实是我们将要调查的。现在,要解决这个问题,只需将VersionOverride 1.0中的所有内容复制到1.1,您就可以看到这些内容正常工作。

您使用的Exchange Server和Outlook版本是什么?@Marclafler Outlook:16.3.1。我没有从exchange服务器提供资产。我目前在本地服务器上为他们服务,该服务器将托管在我的Heroku帐户上。如果您谈论的是我的测试电子邮件服务器,我不确定,但它是一个新的Office 365订阅,因此我认为它是最新的。您使用的Exchange server和Outlook版本是什么?@Marclafler Outlook:16.3.1。我没有从exchange服务器提供资产。我目前在本地服务器上为他们服务,该服务器将托管在我的Heroku帐户上。如果您正在谈论我的测试电子邮件服务器,我不确定,但它是一个新的Office 365订阅,因此我认为它是最新的。这是否意味着您不需要使用WebApplicationInfo节点?如果是这样,那么删除v1_1是最好的选择。这是否意味着您不需要使用WebApplicationInfo节点?如果是这样,那么移除v1_1是最好的选择。