Choosing the C# Language latest version (minor release ) in Visual Studio 2017

By | November 21, 2017

Visual Studio allows you to choose the C# language latest versions for your project. To choose the C# language latest versions, In Visual Studio, from the Solution Explorer, right-click on the project and select Properties -> Build Tab. And, then Select Advanced button. This will bring “Advanced Build Settings” windows, where you can check the drop-down option for “Language Version”. You can refer to one of my old tip – How To Check Default Language Version In Visual Studio?

C# language latest versions

In the Earlier versions of Visual Studio, the language version used to set as default, to pick the default languages version installed. Now, there is a change.  By default, it now referring the to major released version  – (C# latest major version) starting from the release of language version C# 7.1. With that selected,  you will only able to use the features of C# 7.0, irrespective of you have other versions of C# 7.1 or C# 7.2 installed. Unless you made explicit changes to select the minor version it will use the major version as default.  Navigate to Properties -> Build -> Advanced, select “C# latest minor version(latest)” to pick latest installed minor version.

C# language latest versionsThe C# latest major version is the default language version set,  and choosing the “C# latest minor version” it will always refer to latest C# version, in this case it will refer to C# 7.2.

Check out all new features of C# 7.0 

 

Here is the quick difference between two version of Visual Studio

C# language latest versions

Hope this helps!

 

5 thoughts on “Choosing the C# Language latest version (minor release ) in Visual Studio 2017

  1. Ashwin

    This is really helpful when we want to check/use the features of a minor release without waiting for the major C# release.

  2. Pingback: Using Quick Actions in Visual Studio to upgrade project's language version

  3. Pingback: Dew Drop - November 22, 2017 (#2609) - Morning Dew

Comments are closed.