首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Outlook外接程序带状图标不会只显示在Outlook应用程序中

Outlook外接程序带状图标不会只显示在Outlook应用程序中
EN

Stack Overflow用户
提问于 2019-04-01 23:17:35
回答 1查看 688关注 0票数 1

我正在为Outlook开发一个外接程序,用于约会选项卡。我的问题是,初始化外接程序的带状图标没有显示正确的图标(最终返回到默认的Microsoft蓝色六边形),而只显示在Windows应用程序上。该图标在Outlook for Mac和Outlook web客户端上正确显示。

尝试将图标调整为64x64和128x128 (高res),删除和重新安装外接程序,并通过清单验证器进行验证。一切似乎都很好,但问题依然存在。

这些是清单的一部分(URL被本地主机所取代),我认为这些部分与问题相关(如果我遗漏了什么,请随时询问其他部分。

代码语言:javascript
复制
<IconUrl DefaultValue="https://localhost:8080/assets/icon-dark-64.png" />
<HighResolutionIconUrl DefaultValue="https://localhost:8080/assets/icon-dark-128.png" />
代码语言:javascript
复制
<DesktopFormFactor>
    <FunctionFile resid="functionFile" />
    <ExtensionPoint xsi:type="AppointmentOrganizerCommandSurface">
        <OfficeTab id="TabDefault">
            <Group id="meetingGroup">
                <Label resid="groupLabel" />
                <Control xsi:type="Button" id="meetingOpenPaneButton">
                    <Label resid="paneMeetingButtonLabel" />
                    <Supertip>
                        <Title resid="paneMeetingSuperTipTitle" />
                        <Description resid="paneMeetingSuperTipDescription" />
                    </Supertip>
                    <Icon>
                        <bt:Image size="16" resid="icon16" />
                        <bt:Image size="32" resid="icon32" />
                        <bt:Image size="64" resid="icon64" />
                        <bt:Image size="80" resid="icon80" />
                    </Icon>
                    <Action xsi:type="ShowTaskpane">
                        <SourceLocation resid="messageMeetingTaskPaneUrl" />
                    </Action>
                </Control>
            </Group>
        </OfficeTab>
    </ExtensionPoint>
</DesktopFormFactor>
代码语言:javascript
复制
<Resources>
    <bt:Images>
        <bt:Image id="icon16" DefaultValue="https://localhost:8080/assets/icon-dark-16.png" />
        <bt:Image id="icon32" DefaultValue="https://localhost:8080/assets/icon-dark-32.png" />
        <bt:Image id="icon64" DefaultValue="https://localhost:8080/assets/icon-dark-64.png" />
        <bt:Image id="icon80" DefaultValue="https://localhost:8080/assets/icon-dark-80.png" />
    </bt:Images>

    ... <!-- Other resources -->
</Resources>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-04-05 18:17:47

所有图像URI,例如用于外接程序命令的URI,都必须支持缓存。承载映像的服务器不应在HTTP响应中返回指定无缓存、无存储或类似选项的缓存控制报头。找到更多细节,这里

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55464853

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档