Reputation: 157
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:
Upvotes: 5
Views: 6961
Reputation: 1184
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...
Upvotes: 6