Outlook 加载项可固定任务窗格

框架 CIARMOLI

我正在开发 Outlook 加载项。一切正常,直到我尝试添加对可固定任务窗格的支持。我读过我必须为 v1.1 添加 Versionoverrides 子项。但是,如果我添加 v1.1 VersionOverrides,我的加载项根本不会显示。

这是我的清单

<?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"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides"
  xsi:type="MailApp">
  <Id>fc188889-7206-4d15-9968-7a4966f7f4ca</Id>
  <Version>1.0.0.2</Version>
  <ProviderName>Microsoft Outlook Dev Center</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="SolpheoPluginWeb" />
  <Description DefaultValue="SolpheoPluginWeb Description"/>
  <IconUrl DefaultValue="~remoteAppUrl/Images/blue-64.png" />
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="MailBox" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="~remoteAppUrl/"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="~remoteAppUrl/"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteMailbox</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemHasAttachment"/>
  </Rule >
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Description resid="residAppDescription" />
    <Requirements>
      <bt:Sets DefaultMinVersion="1.1">
        <bt:Set Name="Mailbox" />
      </bt:Sets>
    </Requirements>
    <Hosts>
      <Host xsi:type="MailHost">
        <DesktopFormFactor>
          <FunctionFile resid="functionFile" />
          <!-- Message read form -->
          <ExtensionPoint xsi:type="MessageReadCommandSurface">
            <OfficeTab id="TabDefault">
              <Group id="msgReadDemoGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="msgReadSaveAttachments">
                  <Label resid="saveAllAttachmentsLabel" />
                  <Supertip>
                    <Title resid="saveAllAttachmentsTitle" />
                    <Description resid="saveAllAttachmentsDesc" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="save-all-icon16" />
                    <bt:Image size="32" resid="save-all-icon32" />
                    <bt:Image size="80" resid="save-all-icon80" />
                  </Icon>
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>UploadAllAttachments</FunctionName>
                  </Action>
                </Control>

                <!-- 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="green-icon-16" />
                    <bt:Image size="32" resid="green-icon-32" />
                    <bt:Image size="80" resid="green-icon-80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <SourceLocation resid="readTaskPaneUrl" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="save-all-icon16" DefaultValue="~remoteAppUrl/Images/save-all-16.png"/>
        <bt:Image id="save-all-icon32" DefaultValue="~remoteAppUrl/Images/save-all-32.png"/>
        <bt:Image id="save-all-icon64" DefaultValue="~remoteAppUrl/Images/save-all-64.png"/>
        <bt:Image id="save-all-icon80" DefaultValue="~remoteAppUrl/Images/save-all-80.png"/>
        <!-- Blue icon -->
        <bt:Image id="blue-icon-16" DefaultValue="~remoteAppUrl/Images/blue-16.png"/>
        <bt:Image id="blue-icon-32" DefaultValue="~remoteAppUrl/Images/blue-32.png"/>
        <bt:Image id="blue-icon-80" DefaultValue="~remoteAppUrl/Images/blue-80.png"/>
        <!-- Red icon -->
        <bt:Image id="red-icon-16" DefaultValue="~remoteAppUrl/Images/red-16.png"/>
        <bt:Image id="red-icon-32" DefaultValue="~remoteAppUrl/Images/red-32.png"/>
        <bt:Image id="red-icon-80" DefaultValue="~remoteAppUrl/Images/red-80.png"/>
        <!-- Green icon -->
        <bt:Image id="green-icon-16" DefaultValue="~remoteAppUrl/Images/green-16.png"/>
        <bt:Image id="green-icon-32" DefaultValue="~remoteAppUrl/Images/green-32.png"/>
        <bt:Image id="green-icon-80" DefaultValue="~remoteAppUrl/Images/green-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="residExtensionPointUrl" DefaultValue="~remoteAppUrl/"/>
        <bt:Url id="functionFile" DefaultValue="~remoteAppUrl/#!/functions"/>
        <bt:Url id="readTaskPaneUrl" DefaultValue="~remoteAppUrl/"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="groupLabel" DefaultValue="Add-in Demo"/>
        <bt:String id="saveAllAttachmentsLabel" DefaultValue="Save all attachments"/>
        <bt:String id="saveAllAttachmentsTitle" DefaultValue="Save all attachments"/>
        <!-- Read mode -->
        <bt:String id="funcReadButtonLabel" DefaultValue="Get subject"/>
        <bt:String id="menuReadButtonLabel" DefaultValue="Get property"/>
        <bt:String id="paneReadButtonLabel" DefaultValue="Display all properties"/>
        <bt:String id="funcReadSuperTipTitle" DefaultValue="Gets the subject of the message or appointment"/>
        <bt:String id="menuReadSuperTipTitle" DefaultValue="Choose a property to get"/>
        <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties"/>
        <bt:String id="menuItem1ReadLabel" DefaultValue="Get item class"/>
        <bt:String id="menuItem2ReadLabel" DefaultValue="Get date time created"/>
        <bt:String id="menuItem3ReadLabel" DefaultValue="Get item ID"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="saveAllAttachmentsDesc" DefaultValue="Saves all attachments to the Outlook Attachments folder in your OneDrive. This will overwrite any files that already exist with the same name."/>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane so you can choose which attachments to save."/>
        <!-- Read mode -->
        <bt:String id="funcReadSuperTipDescription" DefaultValue="Gets the subject of the message or appointment and displays it in the info bar. This is an example of a function button."/>
        <bt:String id="menuReadSuperTipDescription" DefaultValue="Gets the selected property of the message or appointment and displays it in the info bar. This is an example of a drop-down menu button."/>
        <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties of the message or appointment. This is an example of a button that opens a task pane."/>
        <bt:String id="menuItem1ReadTip" DefaultValue="Gets the item class of the message or appointment and displays it in the info bar." />
        <bt:String id="menuItem2ReadTip" DefaultValue="Gets the date and time the message or appointment was created and displays it in the info bar." />
        <bt:String id="menuItem3ReadTip" DefaultValue="Gets the item ID of the message or appointment and displays it in the info bar." />
      </bt:LongStrings>
    </Resources>
    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
      <Requirements>
        <bt:Sets DefaultMinVersion="1.1">
          <bt:Set Name="Mailbox" />
        </bt:Sets>
      </Requirements>
      <Hosts>
        <Host xsi:type="MailHost">
          <DesktopFormFactor>
            <FunctionFile resid="functionFile" />
            <!-- Message read form -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
              <OfficeTab id="TabDefault">
                <Group id="msgReadDemoGroup">
                  <Label resid="groupLabel" />
                  <Control xsi:type="Button" id="msgReadSaveAttachments">
                    <Label resid="saveAllAttachmentsLabel" />
                    <Supertip>
                      <Title resid="saveAllAttachmentsTitle" />
                      <Description resid="saveAllAttachmentsDesc" />
                    </Supertip>
                    <Icon>
                      <bt:Image size="16" resid="save-all-icon16" />
                      <bt:Image size="32" resid="save-all-icon32" />
                      <bt:Image size="80" resid="save-all-icon80" />
                    </Icon>
                    <Action xsi:type="ExecuteFunction">
                      <FunctionName>UploadAllAttachments</FunctionName>
                    </Action>
                  </Control>
                  <!-- 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="green-icon-16" />
                      <bt:Image size="32" resid="green-icon-32" />
                      <bt:Image size="80" resid="green-icon-80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                      <SourceLocation resid="readTaskPaneUrl" />
                      <SupportsPinning>true</SupportsPinning>
                    </Action>
                  </Control>
                </Group>
              </OfficeTab>
            </ExtensionPoint>
          </DesktopFormFactor>
        </Host>
      </Hosts>
      <Resources>
        <bt:Images>
          <bt:Image id="save-all-icon16" DefaultValue="~remoteAppUrl/Images/save-all-16.png"/>
          <bt:Image id="save-all-icon32" DefaultValue="~remoteAppUrl/Images/save-all-32.png"/>
          <bt:Image id="save-all-icon64" DefaultValue="~remoteAppUrl/Images/save-all-64.png"/>
          <bt:Image id="save-all-icon80" DefaultValue="~remoteAppUrl/Images/save-all-80.png"/>
          <!-- Blue icon -->
          <bt:Image id="blue-icon-16" DefaultValue="~remoteAppUrl/Images/blue-16.png"/>
          <bt:Image id="blue-icon-32" DefaultValue="~remoteAppUrl/Images/blue-32.png"/>
          <bt:Image id="blue-icon-80" DefaultValue="~remoteAppUrl/Images/blue-80.png"/>
          <!-- Red icon -->
          <bt:Image id="red-icon-16" DefaultValue="~remoteAppUrl/Images/red-16.png"/>
          <bt:Image id="red-icon-32" DefaultValue="~remoteAppUrl/Images/red-32.png"/>
          <bt:Image id="red-icon-80" DefaultValue="~remoteAppUrl/Images/red-80.png"/>
          <!-- Green icon -->
          <bt:Image id="green-icon-16" DefaultValue="~remoteAppUrl/Images/green-16.png"/>
          <bt:Image id="green-icon-32" DefaultValue="~remoteAppUrl/Images/green-32.png"/>
          <bt:Image id="green-icon-80" DefaultValue="~remoteAppUrl/Images/green-80.png"/>
        </bt:Images>
        <bt:Urls>
          <bt:Url id="residExtensionPointUrl" DefaultValue="~remoteAppUrl/"/>
          <bt:Url id="functionFile" DefaultValue="~remoteAppUrl/#!/functions"/>
          <bt:Url id="readTaskPaneUrl" DefaultValue="~remoteAppUrl/"/>
        </bt:Urls>
        <bt:ShortStrings>
          <bt:String id="groupLabel" DefaultValue="Add-in Demo"/>
          <bt:String id="saveAllAttachmentsLabel" DefaultValue="Save all attachments"/>
          <bt:String id="saveAllAttachmentsTitle" DefaultValue="Save all attachments"/>
          <!-- Read mode -->
          <bt:String id="funcReadButtonLabel" DefaultValue="Get subject"/>
          <bt:String id="menuReadButtonLabel" DefaultValue="Get property"/>
          <bt:String id="paneReadButtonLabel" DefaultValue="Display all properties"/>
          <bt:String id="funcReadSuperTipTitle" DefaultValue="Gets the subject of the message or appointment"/>
          <bt:String id="menuReadSuperTipTitle" DefaultValue="Choose a property to get"/>
          <bt:String id="paneReadSuperTipTitle" DefaultValue="Get all properties"/>
          <bt:String id="menuItem1ReadLabel" DefaultValue="Get item class"/>
          <bt:String id="menuItem2ReadLabel" DefaultValue="Get date time created"/>
          <bt:String id="menuItem3ReadLabel" DefaultValue="Get item ID"/>
        </bt:ShortStrings>
        <bt:LongStrings>
          <bt:String id="saveAllAttachmentsDesc" DefaultValue="Saves all attachments to the Outlook Attachments folder in your OneDrive. This will overwrite any files that already exist with the same name."/>
          <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane so you can choose which attachments to save."/>
          <!-- Read mode -->
          <bt:String id="funcReadSuperTipDescription" DefaultValue="Gets the subject of the message or appointment and displays it in the info bar. This is an example of a function button."/>
          <bt:String id="menuReadSuperTipDescription" DefaultValue="Gets the selected property of the message or appointment and displays it in the info bar. This is an example of a drop-down menu button."/>
          <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties of the message or appointment. This is an example of a button that opens a task pane."/>
          <bt:String id="menuItem1ReadTip" DefaultValue="Gets the item class of the message or appointment and displays it in the info bar." />
          <bt:String id="menuItem2ReadTip" DefaultValue="Gets the date and time the message or appointment was created and displays it in the info bar." />
          <bt:String id="menuItem3ReadTip" DefaultValue="Gets the item ID of the message or appointment and displays it in the info bar." />
        </bt:LongStrings>
      </Resources>
    </VersionOverrides>
  </VersionOverrides>
</OfficeApp>

我正在 Visual Studio 中进行开发,并且正在使用 Outlook 2016。

如果我删除整个 VersionOverrides_V1.1,一切正常

斯拉娃·伊万诺夫

在清单的<bt:LongStrings>部分中,您<bt:String>使用相同的 id包含了两次。您需要删除具有重复 ID 的项目。请删除以下...

<bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane displaying all available properties of the message or appointment."/>

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

可固定的Outlook任务窗格-Web上的Outlook

创建Outlook 2016的任务窗格Office加载项

Microsoft Outlook加载项中的自定义任务窗格标题

在撰写模式下捕获 Outlook 加载项任务窗格的关闭事件 (MessageComposeCommandSurface)

从 Outlook 任务窗格内的 react 应用程序读取 office 加载项清单文件

在Outlook和加载项窗格之间拖放

在Outlook中,如何将视图从任务窗格加载项切换到模块扩展名?

有没有办法关闭 Outlook Web 加载项中的当前任务窗格?

使用 NetOffice 在 Outlook 中创建任务窗格

Outlook Web Addin 中菜单、任务窗格的显示标签

Outlook 插件:任务窗格中的数据刷新

处于读取模式的Outlook 365垂直任务窗格?

Outlook 2010邮件窗格

阅读窗格和撰写窗口上的 Outlook VSTO 自定义任务窗格?

如何使用 Vsto 中的 C# 在 Outlook 中为我的加载项添加自定义阅读窗格?

Outlook 加载项缓存

固定的Outlook Web加载项:ItemChanged事件停止到达

Outlook加载项权限被拒绝

测试Outlook VSTO加载项

NetOffice-Outlook中的“约会”窗口中的“自定义任务窗格”

Outlook Web 插件入口页面(taskpaneurl) 能否知道哪个任务窗格按钮触发了访问?

Outlook Web Addin-任务窗格关闭时获胜时将清除cookie 10

如何在 Outlook 任务窗格中添加约会项目的事件侦听器?

加载项命令不再自动打开任务窗格

Excel VSTO加载项显示/隐藏任务窗格

Mac版Outlook上的Outlook加载项:清除缓存?

Outlook 2013加载项MailItem创建阻止Outlook

使用Outlook预览元素的发布Outlook加载项-SupportsSharedFolders

Outlook VSTO加载项在Outlook中不可见