Error Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default

前端 未结 7 607
悲哀的现实
悲哀的现实 2020-12-13 11:58

I am trying to target .NET 4.6 and also take advantage of the latest C# version by changing the C# language version to 6.

However during compilation I got this error

7条回答
  •  無奈伤痛
    2020-12-13 12:11

    Open NuGet Package Manager console and run this following command

    Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r

提交回复
热议问题