[英]How does Visual Studio know Project is a VB project or How can I convert my project to C# project
I am looking to convert my project from a VB project into a C# project. 我希望将我的项目从VB项目转换为C#项目。 How do Visual studio recocgnize that the project is a VB project? Visual Studio如何识别该项目是VB项目? 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). 我一直在记事本中浏览我的项目文件,并且注意到一些旧的VB类(它们已由无用的实用程序转换为C#)。 How can I change the actual Project and its files into C#? 如何将实际项目及其文件更改为C#?
Thanks 谢谢
(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. (AFAIK)Visual Studio使用文件扩展名来知道它是哪种文件.vbproj
是vb项目文件.vb
是vb源文件,等等。
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://www.carlosag.net/Tools/CodeTranslator/
http://converter.telerik.com/ http://converter.telerik.com/
http://www.developerfusion.com/tools/convert/csharp-to-vb/ 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/ VB更好: https : //www.simple-talk.com/dotnet/.net-framework/10-reasons-why-visual-basic-is-better-than-c/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.