Hi ,
I am trying to invoke some code using uipath 'invoke code 'activity.
Below is my code:
public class services
{
public static void StartService(string serviceName)
{
ServiceController service = new ServiceController(serviceName);
service.Start();
}
}
I am getting below error.
No compiled code to run
error CS1513: } expected At line 0
error CS1022: Type or namespace definition, or end-of-file expected At line 13
Can we do this using uipath ? is there any dependent package to resolve this issue?
Hi, I am using UIPath 2020.10.2 Pro and experimenting with InvokeCode. To me it seems that invoking code of C# is only possible in c# projects types and VB InvokeCode is only possible in VB project types.
In other words, is it possible to have both languages with āInvokeCodeā mixed in one project?
Unfortunately neither in Studio itself or in the doc pages cited above this constraint is documented, so I am curious.
WIW, in my VB project I am getting an error invoking C# code even for the simplest line, so I assume, it is not possible.
But maybe it is possible to workaround this adding appropriate namespaces to the .xaml ?