Feature 'interpolated strings' is not available in C# 5. Please use language version 6 or greater

后端 未结 4 636
故里飘歌
故里飘歌 2020-12-15 05:02

There is a similar question to this here but I believe that involves a different cause.

I moved a class from a newer project into an older project. Both were targeti

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-15 05:36

    (It can applicable VS 2019 - .NET Framework 4.8 Web Application projects easily)

    I have realized this issue after install DotNetCompilerPlatform v3.6

    I have looked for TheColonel26's answer but I couldn't change selected language version:

    Appearantly, we can not change selected language version. (For details look here)

    After that I have used kfwbird's answer but with changes for newer version:

     
         
             
             
         
     
    

    Now it works as should be.

提交回复
热议问题