简体   繁体   English

Visual Studio 2010 +目标框架3.5。 将使用什么版本的c#编译器?

[英]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.

相关问题 基于目标框架的Visual Studio 2010编译器条件 - visual studio 2010 compiler conditions based on target framework 有没有一种方法可以强制Visual Studio 2005使用Framework v3.5 C#编译器? - Is there a way to force Visual Studio 2005 to use the Framework v3.5 C# compiler? 在Visual Studio命令提示符2010中构建c#dll时如何指定.net目标框架? - How to specify .net target framework when building c# dll in Visual Studio Command Prompt 2010? mklink,Visual Studio 2010(C#)中拒绝目标替换 - mklink, target replacement denied in Visual Studio 2010 (C#) 在C#/ Visual Studio 2010中构建标签。在AssemblyInfo.cs中创建可由预处理器/编译器使用的常量 - Build labelling in C# / Visual Studio 2010. Create a constant that can be used by pre-processor / compiler in AssemblyInfo.cs .NET CORE 6 中的 Visual Studio C# App 版本(用于在 .Net Framework 4.6.2 中执行) - Visual Studio C# App Version in .NET CORE 6 (used to do in in .Net Framework 4.6.2) 在Visual Studio 2010中更改目标框架 - Changing Target Framework in Visual Studio 2010 Visual Studio 2010 .NET Framework 4中的C#Dllimport问题 - C# Dllimport problems in Visual Studio 2010 .NET framework 4 在Visual Studio 2010 Net Framework 4中将Npgsql 3与C#一起使用 - Use Npgsql 3 with C# in Visual Studio 2010 net framework 4 什么是用于指定.net框架版本的C#编译器选项 - what is the C# compiler option for specifying the version of .net framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM