If I add an Icon to my Tool using the 'DefaultIconAttribute' on the tool class, the icon doesn't load 😞
Here is the code snippet that goes on top of the Tool
[Export(typeof(ICommand))]
[DisplayName("Login")]
[Category("ESIS 2013")]
[Description("Login into ESIS 2013")]
[DefaultIcon("/ESIS2013.AddIns;component/Images/ESIS2012_16.png")]
public class LoginTool : ICommand, ISupportsConfiguration
{}
The icon is 16x16 pixels png and is inside the folder 'Images' inside my ESIS2013.AddIns assembly. I have set the build method to 'resource" - Do not Copy
But if I add it to the Tools.xml config file, it works
here is the code
<Tool Label="Login"
Icon="/ESIS2013.AddIns;component/Images/ESIS2012_16.png"
Description="Login into ESIS 2013">
<Tool.Class>
<ESIS2013Users:LoginTool />
</Tool.Class>
<Tool.ConfigData>xx</Tool.ConfigData>
</Tool>
Wonder why this happens. What am I doing wrong?