Make each csproj in a solution target a different C# version

后端 未结 2 1234
后悔当初
后悔当初 2021-01-18 23:32

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
         


        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-19 00:28

    This can be done by looking at the element of the csproj file. Possible values:

    default
    ISO-1
    ISO-2
    3
    4
    5
    

    To do it via the UI, go to Project Properties => Build => Advanced... => Language Version

提交回复
热议问题