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

Choosing the C# Language latest version (minor release ) in Visual Studio 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!

 

Abhijit Jana

Abhijit runs the Daily .NET Tips. He started this site with a vision to have a single knowledge base of .NET tips and tricks and share post that can quickly help any developers . He is a Former Microsoft ASP.NET MVP, CodeProject MVP, Mentor, Speaker, Author, Technology Evangelist and presently working as a .NET Consultant. He blogs at http://abhijitjana.net , you can follow him @AbhijitJana . He is the author of book Kinect for Windows SDK Programming Guide.

5 Comments to “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.

Comments are closed.