简体   繁体   中英

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

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..

I always accidentally create VB.NET projects then slap myself in the face as I then proceed to delete the project and recreate a C# version of it.

工具->导入和导出设置->导入选定的环境设置...->选择是否保存当前设置->在默认设置文件夹下选择C#

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM