I’m creating custom activities and always tested it in projects using Visual Basic language.
Now I’m testing using C# language and I am getting “Unsupported Expression” in all parts of my Custom Activities where I set the value using VisualBasicValue.
To get this working, I need to change from VisualBasicValue to CSharpValue, but of course this will just switch the problem making projects in Visual Basic language have the same problem.
There is a way to determine in design time which language source is being used by UiPath in order to choose the right approach? (VisualBasicValue / CSharpValue).
For Visual Basic language projects:
TextEncoding = new VisualBasicValue<Encoding>("System.Text.Encoding.UTF8")
For C# language projects:
TextEncoding = new CSharpValue<Encoding>("System.Text.Encoding.UTF8")