Coding in C# instead of VB.Net

Building the actual studio over it. Not sure what your case is, but I haven’t a version of UiPath Studio that wasn’t built on top of .Net 4.0 so far.

1 Like

A large number of developers want C# as their coding environment. It is not a question of whether they can code in VB as well or not. A large number of C# developers know C, F#, and some even know COBOL. That does not mean that those are the languages they want to use to code for UIPath Solutions. The choice is clear and it is C#.

UIPath should not be defensive about the current limitation and clearly state by when C# would be available as an option.

10 Likes

Microsoft Workflow Foundation is open source and hosted on Github. When UiPath forked an older version without C# support and don’t use the newest Microsoft version, then there is a chance that C# will be never available.

1 Like

I agree with this idea. It only takes a quick google search to find out that VB.net is a dying language. Nobody uses it. Having a platform built on a dead language doesn’t seem like a good idea, so Invoke code (and most of the rest of uipath) should be in c#. I also think powershell should be an option in invoke code since I find the invoke powershell activity inadequate for more complex script writing (I’m not interested in writing external scripts with external tools, UiPath should handle it so everything can live natively in my workflow)

4 Likes

“U’ll never walk alone!”
Hahaha!

1 Like

19.1 when we’ll switch to .NET 4.6.

12 Likes

So Badita, can we expect the C# coding support option in 19.xx version?

1 Like

Yes.

13 Likes

VB.net is awful, the syntax is way too unnecessarily complex, and I can’t seem to find any useful tutorials or forums to learn.

3 Likes

Haha same here,
Its like every time I write the code in C# and use the converter (http://converter.telerik.com) to convert to VB.Net and use in UiPath.

15 Likes

Didnt know that existed, I love you!

3 Likes

C# expressions still don’t seem to be allowed in studio. Is there a setting to enable them? Or am I just not doing them correctly?

1 Like

I get Document is invalid doing that.

Hello,

Me too getting the Document error,
If you have converted working files can you share?

Thanks,
Meg

2 Likes

Hi, please let me know if you guys were able to find a solution to using C# code directly by modifying the xaml file as stated above.

UiPath scores a perfect 10

Productivity

(UiPath 2019.6 Beta is now available!)
Support for C# is now available for processes in Studio. This means that you can choose between C# and Visual Basic when creating a process, and use C# expressions in activities to build your project. (Currently experimental status)

9 Likes

It is experimental, so please provide feedback and report all the bugs :slight_smile:

5 Likes

we used to get into vb.net :slight_smile: even started loving it :smiley:

3 Likes

How to use C# in Invoke Code activity?
I’ve checked C# working in assign activity it’s working

But in invoke code I received error message.

19.6.0-beta.92+Branch.release/v2019.6.0.Sha.23f7b903e75b338d151bed7a46b44547b99226f5

The workflow has validation errors. Review and resolve them first.

No compiled code to run
error BC30081: ‘If’ must end with a matching ‘End If’. At line 1
error BC30205: End of statement expected. At line 1
error BC30037: Character is not valid. At line 2
error BC30035: Syntax error. At line 3

It’s actually only two places in project I want to use c#.

  1. Invoke code activity, and
  2. assign activity.
    Mostly for simplifying complex LINQ-query.
2 Likes

Hi @Uemoe

Welcome back! :slight_smile:

Could you show a screenshot with the snippet of code that you are trying to use in the Invoke Code activity?

3 Likes