Question

I am looking to convert my project from a VB project into a C# project. How do Visual studio recocgnize that the project is a VB project? I have been looking through my project file in Notepad and I notice some of my old VB classes (they have been converted to C# by a useless utility). How can I change the actual Project and its files into C#?

Thanks

Was it helpful?

Solution

(AFAIK) Visual Studio uses the file extension to know what sort of file it is .vbproj is a vb project file .vb is a vb source file, etc.

You can't just convert a project from one type to another, you will have to re-write each file individually but to get you most of the way there you can convert the code using an online converter:

http://www.carlosag.net/Tools/CodeTranslator/

http://converter.telerik.com/

http://www.developerfusion.com/tools/convert/csharp-to-vb/

Instant troll note: Why convert it at all? VB is much better: https://www.simple-talk.com/dotnet/.net-framework/10-reasons-why-visual-basic-is-better-than-c/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top