[英]Visual Studio 2010 + Target Framework 3.5. What version of c# compiler will be used?
Question is in title. 问题在标题中。 3.0 or 4.0? 3.0还是4.0?
It will use the C# 4 compiler, so you can still use (some) C# 4 features . 它将使用C#4编译器,因此您仍然可以使用(某些)C#4功能 。
If you want to restrict yourself to C# 3, click on the Advanced button in the project properties Build tab (bottom right) and you can choose the language version you want to use. 如果您想限制自己使用C#3,请单击项目属性“构建”选项卡(右下角)中的“高级”按钮,然后您可以选择要使用的语言版本。
Visual Studio 2010 will respect your target. Visual Studio 2010将尊重您的目标。 If you set it to 3.5, it'll compile in 3.5. 如果你把它设置为3.5,它将在3.5中编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.