change default icon outlook-addin

心已入冬 提交于 2019-12-12 05:41:03

问题


I try to change the defaut icon of y outlook add-in. By defaut it's blue icon

I changed every logo in my images folder. When I would like add my add-in I see the correct logo

But on Outlook, I have again the old logo [

]

3 I tried to clean and rebuild the solution, but it didn't change anything. I don't understand why I have always the old logo. I don't know where this old logo come from


回答1:


Try to add in your manifest file this:

  <IconUrl DefaultValue="your URL to image"/>
 <HighResolutionIconUrl DefaultValue="your URL to image" />

The image have to be 128x128 .

If you have compose and read tags you need also have this:

             <Icon>
                <bt:Image size="16" resid="icon16" />
                <bt:Image size="32" resid="icon32" />
                <bt:Image size="80" resid="icon80" />
              </Icon>

When icon16,icon32,icon80 is inside the source tag:

<Resources>
  <bt:Images>
      <bt:Image id="icon16" DefaultValue="your URL to image"/>
  </bt:Images>
</Resources>

You can see full example and explanation here: https://docs.microsoft.com/en-us/outlook/add-ins/manifests



来源:https://stackoverflow.com/questions/47382337/change-default-icon-outlook-addin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!