Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert VB.NET --> C# Projects [closed]

Tags:

c#

.net

vb.net

Can anyone recommend a good application that could be used to convert VB.NET projects to C#, without having to do too much manual work?

We've used Reflector to do small libraries manually, but some of the larger projects will be too slow and complex to do this manually.

like image 425
Jayden Avatar asked Dec 10 '08 07:12

Jayden


People also ask

How to convert VB.NET project to C#?

Go to the same project folder, find csproj file and open this project. Compile it and you will see it has no errors in building process. You can run it without any problem. One more project[6] is converted and the source code is attached.

Should I migrate from VB.NET to C#?

NET Core, you need to convert VB.NET to C#. If desktop apps are enough for you and your users, VB.NET works with NET 5, but only to target Windows Forms--not WPF. But if you want to write web apps running on ASP.NET Core, you'll need C#.


2 Answers

You can use Lutz Roeders Reflector (http://www.red-gate.com/products/reflector) which can decompile whole Assemblies into Visual Studio projects. This way you can convert from ANY .NET Langauge into one of the supported languages of this program (C#.VB.NET,MC++,Delphi,Chrome)

like image 112
codymanix Avatar answered Sep 30 '22 05:09

codymanix


Tangible Software do various converters, including VB to C#.

I've played with it a little bit as they're kind enough to give me a copy for free, but I can't say I've stress-tested it. When I've used it it's been fine though - certainly worth a try.

like image 26
Jon Skeet Avatar answered Sep 30 '22 06:09

Jon Skeet