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

前端 未结 7 611
悲哀的现实
悲哀的现实 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:21

    Update the following NuGet packages (whichever installed) to resolve the problem:

    • Microsoft.CodeDom.Providers.DotNetCompilerPlatform
    • Microsoft.Net.Compilers

提交回复
热议问题