Custom Activity: Icons belonging to the activity

activities
custom_activities

#1

I am creating a number of custom activities, and I would love to associate an icon with each activity so as to have the icon appear next to the activity name in UiPath. How can this be achieved?

Image of desired functionality:


#2

did you try icon url in nuget package explorer?


#3

Yes, however, isn’t that for the package as a whole, and not for each individual activity?


#4

You are right. Let me check.


#5

I use visual studio to create custom activties and i found below snippet which you may give a try

https://msdn.microsoft.com/en-us/library/system.drawing.toolboxbitmapattribute.aspx

     [ToolboxBitmap(typeof(ShowActivityOnLoadActivity), "Resources.DefaultIcon.ico")] //The DefaultIcon.ico is in your resource file
    public class ShowActivityOnLoadActivity : CodeActivity
    {
    }

#6

I use Visual Studio as well. Unfortunately, I was unsuccessful in using your suggested approach: I placed the icon of interest in the C:\ folder, might that be my mistake? Your snippet refers to a resource file, where is this file usually located?