Prevent icon distortion and size distortion when linking a Visual Studio project template on VSIX

We created VSIX, which contains several project templates. Each template .vstemplaterefers to an icon image file as follows:

  <Icon>TemplateIcon.png</Icon>

Here are examples of such PNGs:

enter image description here enter image description here enter image description here

I literally dragged these three images directly from the template project - the same files that will be compiled into VSIX.

It's hard to say here, but the upper left and lower right corners are transparent and the inside of the blue is filled with white.

When I compile VSIX, all the templates are installed correctly and they all work fine. However, the icons in the New Project dialog box are different:

enter image description here

Transparent corners look great, but inside the white color turns to black, and compression appears in the third icon.

GIF ICO ( GIF , ). , 64x64. 32x32 ( ). .

" ", ?

+4
1

RGBA # 00 FF FF 01 . ( , .) , Visual Studio . - () 00 - , 01. FF .

VSiX. (https://msdn.microsoft.com/en-us/library/bb165158.aspx)

https://msdn.microsoft.com/en-US/library/mt628927.aspx. "AllowColorInversion". , .

@Newrad0603 @lishu https://gitter.im/Microsoft/extendvs , .

+4

All Articles