Converting a VB.NET project to a C # project

I am looking for a tool (paid or OSS) to convert a medium-sized VB.NET project into a C # project. I searched StackOverflow and found some questions / answers, but most of them offer .NET Reflector or online tools to copy and paste a single file. Reflector does not seem to comply with the bill, as it will transform the assembly, but we are looking for a full-sale project converter that will support the project, including file names, comments, etc.

We are fully prepared to manually access elements that cannot be automatically converted, but would like to start with a fairly complete converted project.

One recommendation we found is CSharpener Elegance Technologies for VB.NET - http://www.elegancetech.com/csvb/csvb.aspx . Based on their site, it has not been updated since pre-VS 2008.

Recommendations will be appreciated.

+3
source share
5 answers

SharpDevelop is an open source environment and allows you to hide between VB and C #.

+4
source

Keep in mind that VB.net has something that can be done beautifully, that cannot be done beautifully, if at all in C # (and vice versa). Two notes:

  • vb.net (, "Dim Foo As Bar = Whatever" ) , . # , . , , , .
  • vb.net Catch (, Catch Ex As FancyException, Ex.SomeProperty = 9). # , , , , ; . , , When, finally, , , . , break-on-unhandled-exception , "" , , . , .

, IL-to-# , . , # VB.net, .

+4

: . , , . google http://www.freelancer.com, .

+3

SharpDevelop, TangibleSolutions , .

+2

SharpDevelop , VBConversions, . , , , SharpDevelop, .

As a specific example, we found that SharpDevelop incorrectly converted VB indices that use beveled brackets. It seemed that he could not distinguish between indices and method calls, so he did not convert indices into square brackets. VBC conversions converted them accurately. This is one of the things that cost him to buy for us.

+1
source

Source: https://habr.com/ru/post/1772325/


All Articles