I am trying to create environment for C# in Net5.0 with this settings:
But after click create it create environment for Net6.0 and I can't build my project.
Why it happen? and how can I fix it?
I am trying to create environment for C# in Net5.0 with this settings:
But after click create it create environment for Net6.0 and I can't build my project.
Why it happen? and how can I fix it?
You can manually edit the csproj and add LangVersion element.
See:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0</TargetFrameworks>
<LangVersion>10.0</LangVersion>
</PropertyGroup>
</Project>