none
如何使用VS2017开发outlook web addin RRS feed

  • 问题

  • 如题。

           使用vs2017建立默认的outlook web addin项目,运行之后看不到manifest文件中定义的按钮,组 .

    使用了office365新注册的账号。
    已设置 StartAction 为 Office Desktop Client

    manifest 内容如下。

    <?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:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
              xsi:type="MailApp">
    
      <!-- 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>aeeb9a41-c591-4718-88e0-9ab3f4ec3eb9</Id>
    
      <!--Version. Updates from the store only get triggered if there is a version change. -->
      <Version>1.0.0.0</Version>
      <ProviderName>Davton</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="Notify To Team" />
      <Description DefaultValue="Notify To Team"/>
      <IconUrl DefaultValue="https://localhost:44394/Images/Icon80.png"/>
      <HighResolutionIconUrl DefaultValue="https://localhost:44394/images/Icon80.png" />
    
      <SupportUrl DefaultValue="http://www.contoso.com" />
      <!-- 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="ItemRead">
          <DesktopSettings>
            <SourceLocation DefaultValue="https://localhost:44394/MessageRead.html"/>
            <RequestedHeight>250</RequestedHeight>
          </DesktopSettings>
        </Form>
      </FormSettings>
    
      <Permissions>ReadWriteItem</Permissions>
      <Rule xsi:type="RuleCollection" Mode="Or">
        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
      </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>
              <FunctionFile resid="functionFile"/>
              <!--  Message Read  -->
              <!-- Message Read -->
              <ExtensionPoint xsi:type="MessageReadCommandSurface">
                <!-- 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="messageReadTaskPaneUrl" />
                      </Action>
                    </Control>
                    <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
                  </Group>
                </OfficeTab>
              </ExtensionPoint>
            </DesktopFormFactor>
          </Host>
        </Hosts>
        <Resources>
          <bt:Images>
            <bt:Image id="icon16" DefaultValue="https://localhost:44394/Images/Icon16.png"/>
            <bt:Image id="icon32" DefaultValue="https://localhost:44394/Images/Icon32.png"/>
            <bt:Image id="icon80" DefaultValue="https://localhost:44394/Images/Icon80.png"/>
          </bt:Images>
          <bt:Urls>
            <bt:Url id="functionFile" DefaultValue="https://localhost:44394/Functions/FunctionFile.html"/>
            <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44394/MessageRead.html"/>
          </bt:Urls>
          <bt:ShortStrings>
            <bt:String id="groupLabel" DefaultValue="Connector"/>
            <bt:String id="customTabLabel"  DefaultValue="Notify to Team"/>
            <bt:String id="paneReadButtonLabel" DefaultValue="Notify to Team"/>
            <bt:String id="paneReadSuperTipTitle" DefaultValue="Notify to Team"/>
          </bt:ShortStrings>
          <bt:LongStrings>
            <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane and select a dropdown channel to notify and notify"/>
          </bt:LongStrings>
        </Resources>
        <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
          <Requirements>
            <bt:Sets DefaultMinVersion="1.3">
              <bt:Set Name="Mailbox"/>
            </bt:Sets>
          </Requirements>
          <Hosts>
            <Host xsi:type="MailHost">
              <DesktopFormFactor>
                <FunctionFile resid="functionFile"/>
                <!-- Message Read -->
                <ExtensionPoint xsi:type="MessageReadCommandSurface">
                  <!-- 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="messageReadTaskPaneUrl" />
                          <SupportsPinning>true</SupportsPinning>
                        </Action>
                      </Control>
                      <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
                    </Group>
                  </OfficeTab>
                </ExtensionPoint>
              </DesktopFormFactor>
            </Host>
          </Hosts>
          <Resources>
            <bt:Images>
              <bt:Image id="icon16" DefaultValue="https://localhost:44394/Images/Icon16.png"/>
              <bt:Image id="icon32" DefaultValue="https://localhost:44394/Images/Icon32.png"/>
              <bt:Image id="icon80" DefaultValue="https://localhost:44394/Images/Icon80.png"/>
            </bt:Images>
            <bt:Urls>
              <bt:Url id="functionFile" DefaultValue="https://localhost:44394/Functions/FunctionFile.html"/>
              <bt:Url id="messageReadTaskPaneUrl" DefaultValue="https://localhost:44394/MessageRead.html"/>
            </bt:Urls>
            <bt:ShortStrings>
              <bt:String id="groupLabel" DefaultValue="组"/>
              <bt:String id="customTabLabel"  DefaultValue="标签"/>
              <bt:String id="paneReadButtonLabel" DefaultValue="按钮"/>
              <bt:String id="paneReadSuperTipTitle" DefaultValue="Notify to Team"/>
            </bt:ShortStrings>
            <bt:LongStrings>
              <bt:String id="paneReadSuperTipDescription" DefaultValue="Opens a pane and select a dropdown channel to notify and notify"/>
            </bt:LongStrings>
          </Resources>
        </VersionOverrides>
      </VersionOverrides>
    </OfficeApp>

    2019年1月14日 7:19

全部回复

  • 搞定。需要一个office365账号, 以及使用此账号登陆。
    2019年1月14日 9:15
  • 你好,

    感谢分享你的解决方案,请标记为答复, 这个对其他碰到类似问题的论坛交流人员,将会很有帮助。

    Best regards,

    Zhanglong


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    2019年1月15日 1:09
    版主