How to change Language Version from C# 6.0 in Visual Studio 2015 ?

Published on June 22, 2016 by abundantcode

Filed under Visual Studio

Last modified June 22, 2016

Print this page

rate 1 star rate 2 star rate 3 star rate 4 star rate 5 star
Your rating: none, Average: 2 (1 votes)

This article have been viewed 3774 times

There are times when you are developing .NET Project in Visual Studio 2015 with C# 6.0 enabled and you might also have members in your team using Visual Studio 2013 and still want to build and run the project.

How to change Language Version from C# 6.0 in Visual Studio 2015 ?

You can change the C# language version from the project properties.

In the Project properties dialog , navigate to the "Build tab" and click the "Advanced button" from the content area as shown in the below screenshot.

image

In the advanced Build Settings dialog , change to your preferred C# language version by selecting it from the "Language Version" dropdownlist.
image

Click OK and then save and rebuild the project.

Leave a Comment


x

You might be Interested in these Posts

How to get the AM or PM value from a DateTime object in C# ?

There are times when you might want to get only the string AM or PM from the DateTime object that yo...

C# Program to swap two numbers without using temporary variable

Problem Write a program in Visual CSharp to swap two numbers using temporary variable and display t...

C# Program to print the sum of two numbers

Problem Write a program in C# to add two numbers and display the result in copnsole window. How to...