C# language versioning when automatically selected based on framework version

Viewed 591

I have to update the C# version. Now, I use version 7.3 but I need to use 8 or greater version.

While applying the steps in this link, I faced with the problem as it can be seen in the image.

enter image description here

How can I solve this problem? Is there any way to make it manual instead of automatic?

1 Answers

If you edit your .csproj add this line inside the first <PropertyGroup>

<LangVersion>latest</LangVersion>

or if you want to specify the version

<LangVersion>8.0</LangVersion>
Related