In this post we’ll learn about “How to Choose C# Language latest version (minor release) in Visual Studio”. Visual Studio allows you to choose the latest version of the C# language for your project. To select the latest version of the C# language, in Visual Studio, in Solution Explorer, right-click on the project and select Properties -> Build Tab. And then select the Advanced button. This will open the “Advanced build settings” window where you can select the “Language version” drop-down option. You can refer to one of my old tips: How to check default language version in Visual Studio?
C# language latest versions
In previous versions of Visual Studio, language version was used by default to select the default language version installed. Now there’s a change. By default, it now refers to the major version that has been released – (latest major version of C#) starting with C# language version 7.1. When this option is selected, you will only be able to use C# 7.0 features, even if other versions of C# 7.1 or C# 7.2 are installed. Unless you make explicit changes to select the minor version, the major version will be used by default. Go to Properties -> Build -> Advanced, select “Latest C# Minor Version (Latest)” to select the latest minor version installed.
More related post which you may like:
The 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
You can check more article on our website under C# section HERE or you can also check same on Microsoft Docs too.