user5166622
user5166622

Reputation:

Visual studio csharp default language level

When I create a new project in Visual studio 2015 (a csharp console project for example) the language level of the new project is set to c#5.0 while I actually want c#6.0, I know it doesn't take much time to change this but it's quite annoying, how would you change that to default to c#6.0 can't seem to find it in the settings.

Upvotes: 10

Views: 6088

Answers (1)

Vladimir Svyatski
Vladimir Svyatski

Reputation: 490

Open project options, go to Build > Advanced

project properties

for Language Version select C# 6.0.

advanced dialog

By the way, it's strange that your default language version for VS 2015 is 5.0.

Upvotes: 2

Related Questions