我正在开发一个Outlook的加载项,用于Appointments选项卡。我的问题是,初始化加载项的功能区图标不会显示正确的图标(最终会回退到Microsoft的默认蓝色六边形),但仅限于Windows Outlook应用程序。该图标在Outlook for Mac和Outlook Web客户端上正确显示。
尝试已将图标调整为64x64和128x128(高分辨率),删除并重新安装加载项,并通过清单验证器进行验证。一切似乎都很好,但问题仍然存在。
这些是清单的一部分(URL替换为localhost),我判断该问题与问题相关(如果我遗漏了任何内容,请随时询问其他部分。
<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>
所有图像URI(例如用于加载项命令的图像URI)都必须支持缓存。托管映像的服务器不应返回在HTTP响应中指定no-cache,no-store或类似选项的Cache-Control标头。查找更多详细信息here。