5,451 questions
Double click the project name in Solution Explorer to open the project file. Alter LangVersion
as shown below and save. The only reason this will not work is if the .NET Core framework is not installed.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
</Project>