我正在为Outlook开发一个外接程序,用于约会选项卡。我的问题是,初始化外接程序的带状图标没有显示正确的图标(最终返回到默认的Microsoft蓝色六边形),而只显示在Windows应用程序上。该图标在Outlook for Mac和Outlook web客户端上正确显示。
尝试将图标调整为64x64和128x128 (高res),删除和重新安装外接程序,并通过清单验证器进行验证。一切似乎都很好,但问题依然存在。
这些是清单的一部分(URL被本地主机所取代),我认为这些部分与问题相关(如果我遗漏了什么,请随时询问其他部分。
<IconUrl DefaultValue="https://localhost:8080/assets/icon-dark-64.png" />
<HighResolutionIconUrl DefaultValue="https://localhost:8080/assets/icon-dark-128.png" /><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><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>发布于 2019-04-05 18:17:47
所有图像URI,例如用于外接程序命令的URI,都必须支持缓存。承载映像的服务器不应在HTTP响应中返回指定无缓存、无存储或类似选项的缓存控制报头。找到更多细节,这里。
https://stackoverflow.com/questions/55464853
复制相似问题