2017-03-15 1 views
-1

Ich entwickle ein Taskpane-Add-In für Excel mit Visual Studio. Es funktioniert gut, wenn ich F5 und von VS laufe, sehe ich es Sideloads und es gibt eine Aufgabenbereich-Schaltfläche in der HOME-Multifunktionsleiste. Wenn ich das Manifest aus Excel 2016 (mit dem freigegebenen Ordner und allen) versuche und lade, heißt es, dass es erfolgreich geladen wurde, aber es gibt kein Seitenfeld und keine Schaltfläche im HOME-Menüband. Wenn ich meine manifest.xml in Excel Online lade, scheint es auch gut zu sein. Ich habe das gleiche Problem beim Versuch, die manifest.xml auf Excel 2016 auf dem Mac zu laden.Fehlende Aufgabenbereich-Schaltfläche von Ribbon

Jon

[zusätzlich die Datei 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> 
+0

Was sind die Versionen/Builds von Excel 2016 und Excel auf dem Mac? –

+0

Windows Excel 2016 Version 1701 (Build 7766.2060) und Mac Version 15.32 (170309) – JL8707

Antwort

0

Leider mein Fehler. Es war ein Fehler. Die XML-Validierungsprüfung hat dies nicht erfasst, scheint jedoch zu warnen, wenn andere URLs falsch sind.