How to convert a VB project to a C # project

I have a project written in VB and I need to convert the whole project to a C # project. I do not want to do this from a file, I found some online converters, but they only convert lines of codes, not the whole project. I found on research, and it was written here that I saw this question , it was written that

"The best part about Sharpdevelop is converting the entire project (source files) from VB and C # and in a different way."

And I also researched at Google that if you right-click on a project, I found here that "Right-click on a project in the Projects window and select" Convert - from VB.NET to C #. "But when I right-click on "Project in the" Projects "window, I can not find" Convert ". Is there any tool I need to install for SharpDevelop, and then I can convert my project? Thanks

+48
c # converter sharpdevelop
Aug 04 '14 at 6:39
source share
2 answers

I assume you tried SharpDevelop 5, as there is no conversion function in this version.

If you install SharpDevelop 4.4 , you can convert the entire VB.NET project to C # by opening this solution, right-clicking the project in the Projects window and selecting Convert - From VB.NET to C #

+64
Aug 04 '14 at 8:34
source share

Sorry, but I did not come across tools that will convert the entire project. I just created an intermediate C # project and converted small parts to a section at a time in the past. Conversion is not a direct one-2-code card for a number of reasons due to differences in languages. Small steps and some good unit tests help speed up the process. Alternatively, if your code uses the code generator tools provided by CodesmithTools, they often have compiler keys to help change the .net languages. This will certainly help my humble opinion.

+3
Aug 04 '14 at 6:57
source share



All Articles