How do I disable C# 6 Support in Visual Studio 2015?

前端 未结 6 1204
名媛妹妹
名媛妹妹 2020-12-04 08:14

Background

We have a project that we\'re developing in VS 2015 with C#6 enabled that occasionally needs to be opened by developers using VS 2013 without C#6.

6条回答
  •  日久生厌
    2020-12-04 08:59

    You can set the language feature for each project separately by going to Properties => Build tab => Advanced button => Language Version and set your preferred version.

    You should realize that it will still use the new "C# 6.0" .Net Compiler Platform (codenamed Roslyn). However, that compiler will imitate the behavior of older compilers and will limit you to features only available on that specific language version.


    I don't think that there's a solution-wide setting available.

提交回复
热议问题