How to change language version in Visual Studio 2015
Asked Answered
E

2

25

I want to use the nameof operator in my C# project in Visual Studio 2015 but the compiler complains with the following message.

Feature 'nameof operator' is not available in C# 5. Please use language version 6 or greater.

I want to know how I can change the C# language version from Visual Studio 2015.

Epistrophe answered 10/8, 2015 at 6:9 Comment(1)
The same way you change language version in Visual Studio 2013 FYIHyperploid
E
41

Try this..

Project -> Properties -> Build -> Advanced -> Language Version

Expertize answered 10/8, 2015 at 6:13 Comment(1)
How to change the version in a solution with a vb.net website project?Jaymejaymee
E
54

Go to ProjectPropertiesBuildAdvancedLanguage VersionOK as shown with detail steps and screen shots below:

Follow these steps to change the language version of your project

1: Open your project with Visual Studio 2012, 2013 or 2015, click on View from Menu and then click on Solution Explorer

enter image description here

2: From Solution Explorer, Right Click on the project and Properties from context menu

enter image description here

3: From properties dialog, select the tab Build and click on Advanced button

enter image description here

4: Now, from Advanced Build Settings dialog, select Language Version and click OK button. Thats it.

enter image description here

Eisenstark answered 10/8, 2015 at 6:12 Comment(0)
E
41

Try this..

Project -> Properties -> Build -> Advanced -> Language Version

Expertize answered 10/8, 2015 at 6:13 Comment(1)
How to change the version in a solution with a vb.net website project?Jaymejaymee

© 2022 - 2024 — McMap. All rights reserved.