Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 + Target Framework 3.5. What version of c# compiler will be used?

Question is in title. 3.0 or 4.0?

like image 427
Aen Sidhe Avatar asked Apr 13 '10 07:04

Aen Sidhe


1 Answers

It will use the C# 4 compiler, so you can still use (some) C# 4 features.

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.

like image 146
Jon Skeet Avatar answered Oct 09 '22 20:10

Jon Skeet