How do I default Visual Studio to C# projects instead of VB.NET?

后端 未结 2 1906
挽巷
挽巷 2020-12-02 11:50

Visual Studio 2010 keeps defaulting to VB.NET projects instead of C#, I imported my saved settings from 2008 which defaulted to C# projects which did not resolve the problem

相关标签:
2条回答
  • 2020-12-02 12:19

    Visual Studio (2008..and hopefuly '10 =x) defaults to whatever you chose as the last project's code language you created. Double check that yours isn't doing this >_< Try creating a new project in C# code, exit that project, and create another one and see what language it defaults to. If so, it will allow to keep your "Web Development Settings" rather that switch your main environment to C#, like the other solution suggests.

    0 讨论(0)
  • 2020-12-02 12:34

    Tools -> Import and Export Settings -> Import Selected Environment Settings... -> Make selection whether to save current settings -> Select C# under the default setting folder

    0 讨论(0)
提交回复
热议问题