Office js 功能区中缺少任务窗格按钮

Office js 功能区中缺少任务窗格按钮,office-js,Office Js,我正在使用Visual Studio为Excel开发任务窗格加载项。它工作得很好,当我从VS运行F5时,我看到它侧面加载,在主功能区上有一个任务窗格按钮。但是,当我尝试从Excel 2016(使用共享文件夹和all)加载清单时,它表示已成功加载,但主功能区上没有侧面板和按钮。当我在Excel Online中加载manifest.xml时,它看起来也很好。我在Mac上尝试在Excel 2016上加载manifest.xml时遇到了相同的问题 乔恩 [添加manifest.xml文件] <?x

我正在使用Visual Studio为Excel开发任务窗格加载项。它工作得很好,当我从VS运行F5时,我看到它侧面加载,在主功能区上有一个任务窗格按钮。但是,当我尝试从Excel 2016(使用共享文件夹和all)加载清单时,它表示已成功加载,但主功能区上没有侧面板和按钮。当我在Excel Online中加载manifest.xml时,它看起来也很好。我在Mac上尝试在Excel 2016上加载manifest.xml时遇到了相同的问题

乔恩

[添加manifest.xml文件]

<?xml version="1.0" encoding="UTF-8"?> <!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8--> <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">

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

  <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. -->   <Id>8da22257-5b8b-4ad2-bda4-b5a62176bad9</Id>
     <!--Version. Updates from the store only get triggered if there is a version change. -->   <Version>1.0.4</Version>   <ProviderName>XLShare</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="XLShare" />   <Description DefaultValue="XLShare Excel Addin"/>   <!-- Icon for your add-in. Used on installation screens and the add-ins dialog. -->   <IconUrl DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare32x32.png" />

  <SupportUrl DefaultValue="https://xlsharedev.xlshare.net" />   <!-- 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>https://xlsharedev.azurewebsites.net</AppDomain>
    <AppDomain>AppDomain2</AppDomain>
    <AppDomain>AppDomain3</AppDomain>   </AppDomains>   <!--End Basic Settings. -->

  <!--Begin TaskPane Mode integration. This section is used if there are no VersionOverrides or if the Office client version does not support add-in commands. -->   <Hosts>
    <Host Name="Workbook" />   </Hosts>
     <DefaultSettings>
    <SourceLocation DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Home.aspx" />   </DefaultSettings>   <!-- End TaskPane Mode integration.  -->

  <Permissions>ReadWriteDocument</Permissions>

  <!-- Begin Add-in Commands Mode integration. -->   <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">

    <!-- The Hosts node is required. -->
    <Hosts>
      <!-- Each host can have a different set of commands. -->
      <!-- Excel host is Workbook, Word host is Document, and PowerPoint host is Presentation. -->
      <!-- Make sure the hosts you override match the hosts declared in the top section of the manifest. -->
      <Host xsi:type="Workbook">
        <!-- Form factor. Currently only DesktopFormFactor is supported. -->
        <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="XLShare.GetStarted.Title"/>

            <!-- Description of the Getting Started callout. resid points to a LongString resource -->
            <Description resid="XLShare.GetStarted.Description"/>

            <!-- Points to a URL resource which details how the add-in should be used. -->
            <LearnMoreUrl resid="XLShare.GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <!-- Function file is a HTML page that includes the JavaScript where functions for ExecuteAction will be called. 
            Think of the FunctionFile as the code behind ExecuteFunction. -->
          <FunctionFile resid="XLShare.DesktopFunctionFile.Url" />

          <!-- PrimaryCommandSurface is the main Office Ribbon. -->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <!-- Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab. -->
            <OfficeTab id="TabHome">
              <!-- Ensure you provide a unique id for the group. Recommendation for any IDs is to namespace using your company name.
-->
              <Group id="XLShare.Group1">
                <!-- Label for your group. resid must point to a ShortString resource. -->
                <Label resid="XLShare.Group1Label" />
                <!-- Icons. Required sizes 16,32,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX.
-->
                <!-- Use PNG icons. All URLs on the resources section must use HTTPS. -->
                <Icon>
                  <bt:Image size="16" resid="XLShare.tpicon_16x16" />
                  <bt:Image size="20" resid="XLShare.tpicon_20x20" />
                  <bt:Image size="24" resid="XLShare.tpicon_24x24" />
                  <bt:Image size="32" resid="XLShare.tpicon_32x32" />
                  <bt:Image size="16" resid="XLShare.tpicon_40x40" />
                  <bt:Image size="16" resid="XLShare.tpicon_48x48" />
                  <bt:Image size="16" resid="XLShare.tpicon_64x64" />
                  <bt:Image size="80" resid="XLShare.tpicon_80x80" />
                </Icon>

                <!-- Control. It can be of type "Button" or "Menu". -->
                <Control xsi:type="Button" id="XLShare.TaskpaneButton">
                  <Label resid="XLShare.TaskpaneButton.Label" />
                  <Supertip>
                    <!-- ToolTip title. resid must point to a ShortString resource. -->
                    <Title resid="XLShare.TaskpaneButton.Label" />
                    <!-- ToolTip description. resid must point to a LongString resource. -->
                    <Description resid="XLShare.TaskpaneButton.Tooltip" />
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="XLShare.tpicon_16x16" />
                    <bt:Image size="20" resid="XLShare.tpicon_20x20" />
                    <bt:Image size="24" resid="XLShare.tpicon_24x24" />
                    <bt:Image size="32" resid="XLShare.tpicon_32x32" />
                    <bt:Image size="16" resid="XLShare.tpicon_40x40" />
                    <bt:Image size="16" resid="XLShare.tpicon_48x48" />
                    <bt:Image size="16" resid="XLShare.tpicon_64x64" />
                    <bt:Image size="80" resid="XLShare.tpicon_80x80" />
                  </Icon>

                  <!-- This is what happens when the command is triggered (E.g. click on the Ribbon). Supported actions are ExecuteFunction or ShowTaskpane. -->
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>ButtonId1</TaskpaneId>
                    <!-- Provide a URL resource id for the location that will be displayed on the task pane. -->
                    <SourceLocation resid="XLShare.Taskpane.Url" />
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>

    <!-- You can use resources across hosts and form factors. -->
    <Resources>
      <bt:Images>
        <bt:Image id="XLShare.tpicon_16x16" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare16x16.png" />
        <bt:Image id="XLShare.tpicon_20x20" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare20x20.png" />
        <bt:Image id="XLShare.tpicon_24x24" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare24x24.png" />
        <bt:Image id="XLShare.tpicon_32x32" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare32x32.png" />
        <bt:Image id="XLShare.tpicon_40x40" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare40x40.png" />
        <bt:Image id="XLShare.tpicon_48x48" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare48x48.png" />
        <bt:Image id="XLShare.tpicon_64x64" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare64x64.png" />
        <bt:Image id="XLShare.tpicon_80x80" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Images/XLShare80x80.png" />
      </bt:Images>
      <bt:Urls>
        <bt:Url id="XLShare.GetStarted.LearnMoreUrl" DefaultValue="https://xlsharedev.azurewebsites.net" />

        <bt:Url id="XLShare.DesktopFunctionFile.Url" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Functions/FunctionFile.html" />
        <bt:Url id="XLShare.Taskpane.Url" DefaultValue="https://xlsharedev.azurewebsites.net/ExcelOnline/Home.aspx" />
        <!--<bt:Url id="XLShare.Taskpane.Url" DefaultValue="https://localhost:44325/ExcelOnline/Home.aspx" /> -->
      </bt:Urls>
      <!-- ShortStrings max characters==125. -->
      <bt:ShortStrings>
        <bt:String id="XLShare.GetStarted.Title" DefaultValue="Welcome to XLShare!" />

        <bt:String id="XLShare.TaskpaneButton.Label" DefaultValue="Show XLShare Taskpane" />
        <bt:String id="XLShare.Group1Label" DefaultValue="Collaborate" />
      </bt:ShortStrings>
      <!-- LongStrings max characters==250. -->
      <bt:LongStrings>
        <bt:String id="XLShare.GetStarted.Description" DefaultValue="Go to the HOME tab and click the 'Show XLShare Taskpane' button to start." />

        <bt:String id="XLShare.TaskpaneButton.Tooltip" DefaultValue="Click to Show XLShare Taskpane" />
      </bt:LongStrings>
    </Resources>   </VersionOverrides>   <!-- End Add-in Commands Mode integration. -->

</OfficeApp>

8da22257-5b8b-4ad2-bda4-b5a62176bad9
1.0.4 XLEN美国
https://xlsharedev.azurewebsites.net
应用域2
应用域3
读写文件
按钮1

对不起,我弄错了。这是不正确的。xml验证检查器没有检测到这一点,但似乎会在其他url不正确时发出警报。

您的Excel 2016和Mac上的Excel的版本/版本是什么?Windows Excel 2016版本1701(版本7766.2060)和Mac版本15.32(版本170309)