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:
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With