Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why all class files are creating with .vb extension and not as .cs file in my Visual Studio? I need .cs file

When I tried to create a class file in Windows Form in my Visual Studio it's creating .vb file and not .cs one. Not only in Windows Form but also in my MVC projects. Why it's creating .vb file? How do I change that .vb to .cs in all my projects. Did I select a wrong category while installing visual studio? If this question is not suitable to Stackoverflow.com can any one please migrate this question to appropriate Stack Exchange site.

Screenshot:

enter image description here

like image 797
Sathiya Avatar asked Sep 07 '14 08:09

Sathiya


1 Answers

Because you started Visual Basic project.
In order to get files with .cs extension you have to create C# project solution.
You don't have to uninstall Visual Studio since it comes with "pre-installed" languages like VB.net, C#.net etc...

enter image description here

like image 67
Hoh Avatar answered Sep 28 '22 07:09

Hoh