Using custom class

studio

#1

hello everyone,

I’m trying to use a Custom class in my robot.

I successfully managed to build a DLL with my class inside and then put this dll inside a .nupkg that i can find and install in the studio :

But I can’t find my Class or Namespace in import tab. I can’t use the class neither :

image

The dll was in release mode.

Any idea?


#2

Hi @ceddoc
Your Id should start with “Activities” then your id name without space.


#3

#4

HI @ceddoc,

Refer this post

Regards,
Arivu :slight_smile:


#5

Hi @arivu96 and @MahalingPatil ,

I followed your recommandations :
image

But i found nothing in activity Panel :

image

image


#6

Can you attach your c# code


#7

Here is the complete C# project WsCaller.zip (179.3 KB)


#8

Can you confirm me the path where you are placing your nuget packege.?


#9

Hi @ceddoc
quote=“ceddoc, post:5, topic:46832”]
But i found nothing in activity Panel :
[/quote]

If you are creating the custom activity, after installing the package search with class name of your custom activity.
CreationSociete

Regards,
Arivu :slight_smile:


#10

Oh, you perhaps point something pertinent, i put it here : C:\Program Files (x86)\UiPath\Studio\Packages

Should I create %USERPROFILE%.nuget\Packages and put it there?


#11

Nothing in Activities Panel with the class name :’(