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

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

    I had similar issue when I was loading application for the first time in visual studio 2019. Updating "Microsoft.CodeDom.Providers.DotNetCompilerPlatform" nuget to later version did the trick for me.

提交回复
热议问题