I have a solution that contains five C# console application projects. I would like each project to target a different version of C#.
MyLearningSolution.sln
Right click on Project, go to Properites, There under Build
click the Advanced..
button, there you can specify Language version.
This can be done by looking at the <LangVersion>
element of the csproj file. Possible values:
<LangVersion>default</LangVersion>
<LangVersion>ISO-1</LangVersion>
<LangVersion>ISO-2</LangVersion>
<LangVersion>3</LangVersion>
<LangVersion>4</LangVersion>
<LangVersion>5</LangVersion>
To do it via the UI, go to Project Properties => Build => Advanced... => Language Version