首页 文章

从Outlook关闭Windows应用商店后,Outlook添加内侧加载自定义添加消失

提问于
浏览
1

非常困惑

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

我在outlook.com上加载了一个测试帐户,它运行得很好 .

当我将添加侧载到Outlook桌面时(通过直接按文件加载清单XML),系统接受它 .

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

该加载项旨在从AWS上托管的Web服务器获取所有图标和iFrame HTML . 我在下面附上了清单(没有所有ID信息,以及我认为敏感的任何其他信息)

几个笔记

  • 系统不拒绝我的加载项 . 我在Outlook桌面的商店的自定义部分中看到加载项已成功加载 . 一旦我关闭此窗口,它就会消失 .

  • 加载项适用于Outlook.com . 通过了所有QA测试 .

  • 我认为应用程序出于某种原因难以删除加载项?如果有办法从Outlook解决这些问题,我很想知道 . 这是我的第一个outlook应用程序(通常是移动开发人员) .

  • Outlook for Mac Desktop也出现同样的问题,因为它为Outlook桌面提供了支持 .

请帮忙!

<?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>

2 回答

  • 0

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

  • 0

    您的清单仅在VerisonOverrides 1.1中具有WebApplicationInfo节点 . 如果客户端支持VerisonOverrides 1.1,我们选择1.1下的所有内容,并且在客户端上使用1.0以下的内容 . 如果需要MessageComposeCommandSurface,则还需要将VersionOverrides 1.0下的所有内容复制到1.1 . 这样,支持VerisonOverrides 1.1的客户端将呈现命令表面和webapplicationinfo节点,而不支持VersionOverrides 1.1的客户端将回退到1.0以仅显示compose命令表面 . 它在OWA中工作的事实是我们将要研究的 . 现在要解决这个问题,只需将VersionOverride 1.0中的所有内容复制到1.1,您就应该看到有效的方法 .

相关问题