Office アドインの XML マニフェスト

この記事では、Office アドイン用の XML 形式のマニフェストについて説明します。 Office アドイン マニフェストについて理解していることを前提としています。 この記事で説明されている目的に加えて、XML 形式のマニフェストでは、Microsoft 365 の統合マニフェストでサポートされていない特定の Outlook アドイン機能もサポートされています。 たとえば、Outlook アドインの XML マニフェストでは、アドインがアクティブ化されるコンテキストを指定するルールまたはルールを定義できます。

ヒント

Microsoft 365 の統合マニフェストの概要については、「Office アドインと Microsoft 365 の統合マニフェスト (プレビュー)」を参照してください。

スキーマのバージョン

すべての Office クライアントが最新の機能をサポートしているわけではありません。また、一部の Office ユーザーには古いバージョンの Office があります。 スキーマ バージョンを使用すると、開発者は、以前のバージョンで引き続き機能している最新の機能を使用して、下位互換性のあるアドインを構築できます。

<マニフェストの VersionOverrides> 要素がこの例です。 VersionOverrides> 内で<定義されているすべての要素は、マニフェストの他の部分の同じ要素をオーバーライドします。 つまり、可能な限り、Office は VersionOverrides> セクションにある<ものを使用してアドインを設定します。 ただし、Office のバージョンが特定のバージョンの <VersionOverrides> をサポートしていない場合、Office はそれを無視し、マニフェストの残りの部分の情報に依存します。

このアプローチでは、開発者は個別のマニフェストを複数作成する必要がなく、すべてを 1 つのファイルで定義することになります。

現在のスキーマのバージョンは次のとおりです。

バージョン 説明
v1.0 Office JavaScript API のバージョン 1.0 をサポートします。 たとえば、Outlook アドインでは、読み取りフォームがサポートされています。
v1.1 Office JavaScript API と <VersionOverrides のバージョン 1.1 をサポートします>。 たとえば、Outlook アドインでは、作成フォームのサポートが追加されます。
<VersionOverrides> 1.0 JavaScript API for Office の最新バージョンをサポートします。 アドイン コマンドをサポートします。
<VersionOverrides> 1.1 Outlook でのみサポートされます。 このバージョンの <VersionOverrides> は、 ピン留め可能な作業ウィンドウ やモバイル アドインなどの新しい機能のサポートを追加します。

アドイン マニフェストで VersionOverrides> 要素を<使用する場合でも、v1.1 マニフェスト要素を含め、VersionOverrides をサポート<していない古いクライアントでアドインを操作できるようにすることが重要です>

注:

Office では、スキーマを使用してマニフェストを検証します。 スキーマでは、マニフェスト内の要素が特定の順序で表示される必要があります。 必要な順序から要素を含めると、アドインをサイドローディングするときにエラーが発生する可能性があります。 必要な順序でマニフェスト要素要素の適切な順序を見つける方法に関するページを参照してください。

必要な要素

次の表に、3 種類の Office アドインに必要な要素を示します。

注:

親要素内で要素を表示する順序も決まっています。 詳細については、「 XML マニフェスト要素の適切な順序を見つける方法」を参照してください。

Office アドインの種類ごとの必要な要素

要素 コンテンツ 作業ウィンドウ メール
(Outlook)
OfficeApp 必須 必須 必須
Id 必須 必須 必須
バージョン 必須 必須 必須
ProviderName 必須 必須 必須
DefaultLocale 必須 必須 必須
DisplayName 必須 必須 必須
Description 必須 必須 必須
SupportUrl** 必須 必須 必須
DefaultSettings (ContentApp)
DefaultSettings (TaskPaneApp)
必須 必須 使用不可
SourceLocation (ContentApp)
SourceLocation (TaskPaneApp)
SourceLocation (MailApp)
必須 必須 必須
DesktopSettings 使用不可 使用不可 必須
Permissions (ContentApp)
Permissions (TaskPaneApp)
Permissions (MailApp)
必須 必須 必須
Rule (RuleCollection)
Rule (MailApp)
使用不可 使用不可 必須
Requirements (MailApp)* 該当なし 使用不可 必須
Set*
Sets (Requirements)*
Sets (MailAppRequirements)*
必須 必須 必須
Form*
FormSettings*
使用不可 使用不可 必須
Hosts* 必須 必須 省略可能

*Office アドイン マニフェスト スキーマ バージョン 1.1 で追加されました。

** SupportUrl は、AppSource を介して配布されるアドインにのみ必要です。

ルート要素

Office アドイン マニフェストのルート要素は <OfficeApp です>。 この要素はまた、既定の名前空間、スキーマのバージョン、およびアドインの種類を宣言します。 開始タグと終了タグの間にマニフェストのその他すべての要素を配置します。 ルート要素の例を以下に示します。

<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
  xsi:type="MailApp">

  <!-- The rest of the manifest. -->

</OfficeApp>

バージョン

特定のアドインのバージョンです。 開発者がマニフェスト内で何かを更新する場合、バージョンも同様に上げる必要があります。 このように、新しいマニフェストをインストールすると、既存のマニフェストが上書きされ、ユーザーは新機能を取得します。 このアドインがストアに送信されている場合は、新しいマニフェストをもう一度送信して検証する必要があります。 承認されると、数時間以内に、このアドインのユーザーは更新された新しいマニフェストを自動的に使用できるようになります。

アドインに必要なアクセス許可が変更された場合、ユーザーは、アップグレードを行いアドインに再同意するように求められます。 管理者が組織全体にこのアドインをインストール済みである場合、管理者がまず再同意する必要があります。 同意が付与されるまで、ユーザーはアドインを使用できません。

Hosts

Office アドインでは、次のように Hosts> 要素を<指定します。

<OfficeApp>
...
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
...
</OfficeApp>

これは VersionOverrides> 要素内の<Hosts> 要素とは<別の要素であり、xml マニフェストを使用したアドイン コマンドCreateで説明します

AppDomains 要素を使用して安全なドメインを指定する

XML マニフェスト ファイルには AppDomains 要素があり、アドインの移動を許可するドメインを Office に通知するために使用されます。 「アドイン ウィンドウで開くドメインを指定する」で示されているように、Office on the webで実行する場合は、作業ウィンドウを任意の URL に移動できます。 ただし、デスクトップ プラットフォームでは、アドインが ( SourceLocation 要素で指定されているように) スタート ページをホストするドメイン以外のドメイン内の URL に移動しようとすると、その URL は Office アプリケーションのアドイン ウィンドウの外側の新しいブラウザー ウィンドウで開きます。

この (デスクトップ Office) 動作をオーバーライドするには、AppDomains> 要素で指定されたドメインの一覧のアドイン ウィンドウで開く各ドメインを<追加します。 アドインがこの一覧にあるドメインの URL に移動しようとすると、Office on the web とデスクトップの Office の両方の作業ウィンドウで開きます。 一覧にない URL に移動しようとすると、デスクトップ Office でその URL が新しいブラウザー ウィンドウ (アドイン ウィンドウの外側) で開きます。

次の表では、アドインが既定のドメイン外の URL に移動しようとした場合のブラウザーの動作について説明します。

Office クライアント AppDomains で定義されているドメイン ブラウザーの動作
すべてのクライアント はい リンクがアドインの作業ウィンドウで開きます。
Windows 上の Office 2016 (ボリューム ライセンスの永続的) いいえ リンクが Internet Explorer 11 で開きます。
その他のクライアント いいえ リンクがユーザーの既定のブラウザーで開きます。

次の XML マニフェストの例では、SourceLocation> 要素で指定されているドメイン内のメイン アドイン ページを<ホストします。https://www.contoso.com また、AppDomains> 要素リスト内の AppDomain 要素内の<ドメインも指定https://www.northwindtraders.comします。 アドインが www.northwindtraders.com ドメイン内のページに移動すると、Office デスクトップの場合でも、そのページはアドイン ウィンドウで開きます。

<?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" xsi:type="TaskPaneApp">
  <!--IMPORTANT! Id must be unique for each add-in. If you copy this manifest ensure that you change this id to your own GUID. -->
  <Id>c6890c26-5bbb-40ed-a321-37f07909a2f0</Id>
  <Version>1.0</Version>
  <ProviderName>Contoso, Ltd</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="Northwind Traders Excel" />
  <Description DefaultValue="Search Northwind Traders data from Excel"/>
  <SupportUrl DefaultValue="[Insert the URL of a page that provides support information for the app]" />
  <AppDomains>
    <AppDomain>https://www.northwindtraders.com</AppDomain>
  </AppDomains>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://www.contoso.com/search_app/Default.aspx" />
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
</OfficeApp>

マニフェストでのバージョンの上書き

省略可能な VersionOverrides 要素には、追加のアドイン機能を有効にする子マークアップが含まれています。 その一部を次に示します。

  • Office リボンやメニューをカスタマイズします。
  • アドインを実行する埋め込みランタイムでの Office の動作をカスタマイズする。
  • アドインが Azure Active Directory やシングル サインオン用 Microsoft Graph と対話する方法を構成します。

子要素 VersionOverrides の中には、親要素 OfficeApp の値を上書きする値があります。 たとえば、VersionOverrides 内の Hosts 要素は OfficeApp 内の Hosts 要素よりも優先されます。

VersionOverrides 要素には独自のスキーマがあり、実際にはアドインの種類や使用する機能に応じて 4 つのスキーマがあります。 スキーマは以下のとおりです。

VersionOverrides 要素を使用する場合、OfficeApp 要素には適切なスキーマを識別する xmlns 属性を含む必要があります。 この属性に設定できる値は以下のとおりです。

  • http://schemas.microsoft.com/office/taskpaneappversionoverrides
  • http://schemas.microsoft.com/office/contentappversionoverrides
  • http://schemas.microsoft.com/office/mailappversionoverrides

VersionOverrides 要素自体にもスキーマを指定する xmlns 属性が必要です。 設定可能な値は、上記の 3 つと以下に示す値です。

  • http://schemas.microsoft.com/office/mailappversionoverrides/1.1

VersionOverrides 要素には、スキーマ バージョンを指定する xsi:type 属性も必要です。 指定できる値は以下のとおりです。

  • VersionOverridesV1_0
  • VersionOverridesV1_1

作業ウィンドウ アドインとメール アドインにそれぞれ VersionOverrides を使用した例を以下に示します。 バージョン 1.1 のメール VersionOverrides を使用する場合は、タイプ 1.0 の親要素 VersionOverrides の最後の子要素である必要があることに注意してください。 内側の子要素 VersionOverrides の値は、親要素 VersionOverrides と祖父母要素 OfficeApp の同名要素の値を上書きします。

<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <!-- Child elements are omitted. -->
</VersionOverrides>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
  <!-- Other child elements are omitted. -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
    <!-- Child elements are omitted. -->
  </VersionOverrides>
</VersionOverrides>

VersionOverrides 要素を含むマニフェストの例については、「マニフェスト v1.1 XML ファイルの例とスキーマ」を参照してください。

要件

Requirements> 要素は<、アドインで使用できる API のセットを指定します。 要件セットの詳細については、「 Office 要件セットの可用性」を参照してください。 たとえば、Outlook アドインでは、要件セットは Mailbox で、値は 1.1 以上である必要があります。

Requirements> 要素は<VersionOverrides 要素にも表示<され、VersionOverrides>>をサポート<するクライアントに読み込まれるときにアドインで別の要件を指定できます。

次の例では、 Sets> 要素の<DefaultMinVersion 属性を使用してバージョン 1.1 以降 office.js 必要とし、Set> 要素の<MinVersion 属性を使用してメールボックス要件セットバージョン 1.1 を必要とします。

<OfficeApp>
...
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="MailBox" MinVersion="1.1" />
    </Sets>
  </Requirements>
...
</OfficeApp>

ローカライズ

名前、説明、および読み込む URL など、アドインのいくつかの側面は、各種のロケール用にローカライズする必要があります。 これらの要素は、既定値を指定し、VersionOverrides> 要素内の Resources 要素でロケールのオーバーライドを指定することで、簡単に<ローカライズできます。<> 画像、URL、および文字列をオーバーライドする方法を次に示します。

<Resources>
  <bt:Images>
    <bt:Image id="icon1_16x16" DefaultValue="https://contoso.com/images/app_icon_small.png" >
      <bt:Override Locale="ar-sa" Value="https://contoso.com/images/app_icon_small_arsa.png" />
      <!-- Add information for other locales. -->
    </bt:Image>
  </bt:Images>

  <bt:Urls>
    <bt:Url id="residDesktopFuncUrl" DefaultValue="https://contoso.com/urls/page_appcmdcode.html" >
      <bt:Override Locale="ar-sa" Value="https://contoso.com/urls/page_appcmdcode.html?lcid=ar-sa" />
      <!-- Add information for other locales. -->
    </bt:Url>
  </bt:Urls>

  <bt:ShortStrings> 
    <bt:String id="residViewTemplates" DefaultValue="Launch My Add-in">
      <bt:Override Locale="ar-sa" Value="<add localized value here>" />
      <!-- Add information for other locales. -->
    </bt:String>
  </bt:ShortStrings>
</Resources>

スキーマ参照には、ローカライズできる要素に関する完全な情報が含まれています。

マニフェスト v1.1 XML ファイルの例とスキーマ

次のセクションでは、コンテンツ、作業ウィンドウ、メール (Outlook) アドイン用のマニフェスト v1.1 XML ファイルの例を示します。

アドイン マニフェストのスキーマ

<?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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">

  <!-- See https://github.com/OfficeDev/Office-Add-in-Commands-Samples for documentation. -->

  <!-- BeginBasicSettings: Add-in metadata, used for all versions of Office unless override provided. -->

  <!-- IMPORTANT! Id must be unique for your add-in. If you copy this manifest, ensure that you change this ID to your own GUID. -->
  <Id>e504fb41-a92a-4526-b101-542f357b7acb</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Contoso</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <!-- The display name of your add-in. Used on the store and various placed of the Office UI such as the add-in's dialog. -->
  <DisplayName DefaultValue="Add-in Commands Sample" />
  <Description DefaultValue="Sample that illustrates add-in commands basic control types and actions." />
  <!-- Icon for your add-in. Used on installation screens and the add-in's dialog. -->
  <IconUrl DefaultValue="https://contoso.com/assets/icon-32.png" />
  <HighResolutionIconUrl DefaultValue="https://contoso.com/assets/hi-res-icon.png" />
  <SupportUrl DefaultValue="[Insert the URL of a page that provides support information for the app]" />
  <!-- Domains that are allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation is only allowed if the domain is on this list. -->
  <AppDomains>
    <AppDomain>AppDomain1</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
  </AppDomains>
  <!-- End Basic Settings. -->

  <!-- BeginTaskPaneMode integration. Any client that doesn't understand commands will use this section.
    This section will also be used if there are no VersionOverrides. -->
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://commandsimple.azurewebsites.net/Taskpane.html" />
  </DefaultSettings>
  <!-- EndTaskPaneMode integration. -->

  <Permissions>ReadWriteDocument</Permissions>

  <!-- BeginAddinCommandsMode integration. -->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <!-- Each host can have a different set of commands. Cool huh!? -->
      <!-- Workbook=Excel, Document=Word, Presentation=PowerPoint -->
      <!-- Make sure the hosts you override match the hosts declared in the top section of the manifest. -->
      <Host xsi:type="Document">
        <!-- Form factor. DesktopFormFactor is supported. Other form factors are available depending on the host and feature. -->
        <DesktopFormFactor>
          <!-- This code enables a customizable message to be displayed when the add-in is loaded successfully upon individual install. -->
          <GetStarted>
            <!-- Title of the Getting Started callout. The resid attribute points to a ShortString resource. -->
            <Title resid="Contoso.GetStarted.Title"/>
            <!-- Description of the Getting Started callout. resid points to a LongString resource. -->
            <Description resid="Contoso.GetStarted.Description"/>  
            <!-- Points to a URL resource which details how the add-in should be used. -->
            <LearnMoreUrl resid="Contoso.GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <!-- Function file is an HTML page that includes, or loads, the JavaScript where functions for ExecuteAction will be called. Think of the FunctionFile as the "code behind" ExecuteFunction. -->
          <FunctionFile resid="Contoso.FunctionFile.Url" />

          <!-- PrimaryCommandSurface==Main Office app ribbon. -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
            <!-- Documentation includes all the IDs currently tested to work. -->
            <CustomTab id="Contoso.Tab1">
              <!--Group ID-->
              <Group id="Contoso.Tab1.Group1">
                <!--Label for your group. resid must point to a ShortString resource. -->
                <Label resid="Contoso.Tab1.GroupLabel" />
                <Icon>
                  <!-- Each size needs its own icon resource or it will look distorted when resized. -->
                  <!-- Icons. Required sizes: 16, 32, 80; optional: 20, 24, 40, 48, 64. You should provide as many sizes as possible for a great user experience. -->
                  <!-- Use PNG icons and remember that all URLs on the resources section must use HTTPS. -->
                  <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon16" />
                  <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon32" />
                  <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon80" />
                </Icon>

                <!-- Control. It can be of type "Button" or "Menu". -->
                <Control xsi:type="Button" id="Contoso.FunctionButton">
                  <!-- Label for your button. resid must point to a ShortString resource. -->
                  <Label resid="Contoso.FunctionButton.Label" />
                  <Supertip>
                    <!-- ToolTip title. resid must point to a ShortString resource. -->
                    <Title resid="Contoso.FunctionButton.Label" />
                    <!-- ToolTip description. resid must point to a LongString resource. -->
                    <Description resid="Contoso.FunctionButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Contoso.FunctionButton.Icon16" />
                    <bt:Image size="32" resid="Contoso.FunctionButton.Icon32" />
                    <bt:Image size="80" resid="Contoso.FunctionButton.Icon80" />
                  </Icon>
                  <!-- This is what happens when the command is triggered (e.g., click on the ribbon button). -->
                  <!-- Supported actions are ExecuteFunction or ShowTaskpane. -->
                  <!-- Look at the FunctionFile.html page for reference on how to implement the function. -->
                  <Action xsi:type="ExecuteFunction">
                    <!-- Name of the function to call. This function needs to exist in the global DOM namespace of the function file. -->
                    <FunctionName>writeText</FunctionName>
                  </Action>
                </Control>

                <Control xsi:type="Button" id="Contoso.TaskpaneButton">
                  <Label resid="Contoso.TaskpaneButton.Label" />
                  <Supertip>
                    <Title resid="Contoso.TaskpaneButton.Label" />
                    <Description resid="Contoso.TaskpaneButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon16" />
                    <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon32" />
                    <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon80" />
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>Button2Id1</TaskpaneId>
                    <!-- Provide a URL resource ID for the location that will be displayed on the task pane. -->
                    <SourceLocation resid="Contoso.Taskpane1.Url" />
                  </Action>
                </Control>
                <!-- Menu example. -->
                <Control xsi:type="Menu" id="Contoso.Menu">
                  <Label resid="Contoso.Dropdown.Label" />
                  <Supertip>
                    <Title resid="Contoso.Dropdown.Label" />
                    <Description resid="Contoso.Dropdown.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon16" />
                    <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon32" />
                    <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon80" />
                  </Icon>
                  <Items>
                    <Item id="Contoso.Menu.Item1">
                      <Label resid="Contoso.Item1.Label"/>
                      <Supertip>
                        <Title resid="Contoso.Item1.Label" />
                        <Description resid="Contoso.Item1.Tooltip" />
                      </Supertip>
                      <Icon>
                        <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon16" />
                        <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon32" />
                        <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon80" />
                      </Icon>
                      <Action xsi:type="ShowTaskpane">
                        <TaskpaneId>MyTaskPaneID1</TaskpaneId>
                        <SourceLocation resid="Contoso.Taskpane1.Url" />
                      </Action>
                    </Item>

                    <Item id="Contoso.Menu.Item2">
                      <Label resid="Contoso.Item2.Label"/>
                      <Supertip>
                        <Title resid="Contoso.Item2.Label" />
                        <Description resid="Contoso.Item2.Tooltip" />
                      </Supertip>
                      <Icon>
                        <bt:Image size="16" resid="Contoso.TaskpaneButton.Icon16" />
                        <bt:Image size="32" resid="Contoso.TaskpaneButton.Icon32" />
                        <bt:Image size="80" resid="Contoso.TaskpaneButton.Icon80" />
                      </Icon>
                      <Action xsi:type="ShowTaskpane">
                        <TaskpaneId>MyTaskPaneID2</TaskpaneId>
                        <SourceLocation resid="Contoso.Taskpane2.Url" />
                      </Action>
                    </Item>

                  </Items>
                </Control>

              </Group>

              <!-- Label of your tab. -->
              <!-- If validating with XSD, it needs to be at the end. -->
              <Label resid="Contoso.Tab1.TabLabel" />
            </CustomTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <!-- You can use resources across hosts and form factors. -->
    <Resources>
      <bt:Images>
        <bt:Image id="Contoso.TaskpaneButton.Icon16" DefaultValue="https://myCDN/Images/Button16x16.png" />
        <bt:Image id="Contoso.TaskpaneButton.Icon32" DefaultValue="https://myCDN/Images/Button32x32.png" />
        <bt:Image id="Contoso.TaskpaneButton.Icon80" DefaultValue="https://myCDN/Images/Button80x80.png" />
        <bt:Image id="Contoso.FunctionButton.Icon" DefaultValue="https://myCDN/Images/ButtonFunction.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="Contoso.FunctionFile.Url" DefaultValue="https://commandsimple.azurewebsites.net/FunctionFile.html" />
        <bt:Url id="Contoso.Taskpane1.Url" DefaultValue="https://commandsimple.azurewebsites.net/Taskpane.html" />
        <bt:Url id="Contoso.Taskpane2.Url" DefaultValue="https://commandsimple.azurewebsites.net/Taskpane2.html" />
      </bt:Urls>
      <!-- ShortStrings max characters=125. -->
      <bt:ShortStrings>
        <bt:String id="Contoso.FunctionButton.Label" DefaultValue="Execute Function" />
        <bt:String id="Contoso.TaskpaneButton.Label" DefaultValue="Show Task Pane" />
        <bt:String id="Contoso.Dropdown.Label" DefaultValue="Dropdown" />
        <bt:String id="Contoso.Item1.Label" DefaultValue="Show Task Pane 1" />
        <bt:String id="Contoso.Item2.Label" DefaultValue="Show Task Pane 2" />
        <bt:String id="Contoso.Tab1.GroupLabel" DefaultValue="Test Group" />
         <bt:String id="Contoso.Tab1.TabLabel" DefaultValue="Test Tab" />
      </bt:ShortStrings>
      <!-- LongStrings max characters=250. -->
      <bt:LongStrings>
        <bt:String id="Contoso.FunctionButton.Tooltip" DefaultValue="Click to execute function." />
        <bt:String id="Contoso.TaskpaneButton.Tooltip" DefaultValue="Click to show a task pane." />
        <bt:String id="Contoso.Dropdown.Tooltip" DefaultValue="Click to show options on this menu." />
        <bt:String id="Contoso.Item1.Tooltip" DefaultValue="Click to show Task Pane 1." />
        <bt:String id="Contoso.Item2.Tooltip" DefaultValue="Click to show Task Pane 2." />
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>
  <!-- EndAddinCommandsMode integration. -->
</OfficeApp>

Office アドインのマニフェストを検証する

XML スキーマ定義 (XSD) に対してマニフェストを検証する方法については、「Office アドインのマニフェストを検証する」を参照してください。

関連項目