通过 Visual Studio 启动时 Outlook Web AddIn 不起作用

问题描述 投票:0回答:1

我最近一直在尝试为 Microsoft Outlook 创建一个新的 Web 插件。我对此完全陌生。我遵循了微软的文档,并为 Outlook 创建了一个新的简单 Web 插件。我的插件有一个包含 6 个控件(按钮)的 CustomTab。这是清单文件的代码:

<Hosts>
    <Host xsi:type="MailHost">
        <DesktopFormFactor>
            <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). -->
            <FunctionFile resid="functionFile" />
            <!-- Message Read -->
            <ExtensionPoint xsi:type="MessageReadCommandSurface">
                <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> -->
                <CustomTab id="myTab">
                    <!-- Up to 6 Groups added per Tab -->
                    <Group id="NoraGroup">
                        <Label resid="NoraGroupLabel" />
                        <!-- Launch the add-in : task pane button -->
                        <Control xsi:type="Button" id="Button1">
                            <Action xsi:type="ShowTaskpane">
                                <SourceLocation resid="messageReadTaskPaneUrl" />
                            </Action>
                        </Control>

                        <Control xsi:type="Button" id="Button2">
                            <Action xsi:type="ExecuteFunction">
                                <FunctionName>saveEmail</FunctionName>
                            </Action>
                        </Control>

                        <Control xsi:type="Button" id="Button3">
                            <Action xsi:type="ExecuteFunction">
                                <FunctionName>saveEmailAndAttachment</FunctionName>
                            </Action>
                        </Control>
                        <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu -->
                    </Group>
                </CustomTab>
            </ExtensionPoint>
            <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee -->
        </DesktopFormFactor>
    </Host>
</Hosts>

随附的是有关该插件之前如何工作的屏幕截图:

enter image description here

但是现在,当我从 Visual Studio 运行插件时,会显示主按钮 NoRA。但是当我点击它时,控件列表没有显示。

这是我使用 Visual Studio 加载插件时控制台调试的屏幕截图: enter image description here

visual-studio outlook office-js office-addins outlook-web-addins
1个回答
0
投票

但是他们使用了一个过时的 javascript 文件(其中包含命令操作),我上次编辑是在 3 周前。我昨天对 javascript 文件做了一些更改,并尝试使用 Visual Studio 进行调试。不幸的是,这些命令不再可见。

首先是清除Office缓存。有关详细信息,请参阅清除 Office 缓存

© www.soinside.com 2019 - 2024. All rights reserved.