I am using ITeamExplorerNavigationItem2 to add a button in the Team Explorer.
When I am using the property public System.Drawing.Image Image to control the button Icon.
public System.Drawing.Image Image => null // Button comes up without any button icon
public System.Drawing.Image Image => System.Drawing.Image.FromFile("MyImage.png"); // button does not show up in the team explorer
*Note that both are working when I am debugging the Extension i.e. using experimental instance.
What I am suspecting is, during debug it is finding the path of the "MyImage.png" but at run time the Image is not packaged to the VSIX, so it is not finding the .png path and subsequently it is not displaying the icon and button. Can someone help how can I add the image icon ?