Select to view content in your preferred language

modifying Config.esriaddinx - change add-in's icon

4179
2
03-09-2011 03:02 AM
JanBurdziej1
Emerging Contributor
Hi,
I've created an add-in using VB 2008 Express with ESRI ArcGIS wizard. Now I want to change the add-in's image / icon.

  
<ESRI.Configuration xmlns="http://schemas.esri.com/Desktop/AddIns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...
<Image>Images\logo.png</Image>
...
</ESRI.Configuration>


I have an image logo.png stored in both Resources and Images folder in my VB.NET project. However, this image is somehow not visible for the add-in. I've checked the add-in package (.esriAddIn zip file) after compiling the project and there is no image "logo.png" in the Images folder inside this package.

The question is: how can I include this image to my add in package?

I had similar problems with icons for specific buttons in this add-in, however this was fixed when I used ArcGIS wizard for adding new items to my VB.NET project.

Help would be appreciated,
Regards,
Jan
0 Kudos
2 Replies
JeffreyHamblin
Occasional Contributor
You need to inform the build process to include the image file in the Add-In package.

In Visual Studio's solution explorer, select your logo.png file under images. Set the Build Action property to AddInContent.

-Jeff
JanBurdziej1
Emerging Contributor
It works! Thanks,
Jan
0 Kudos