Asp.net mvc 无效选项';6';for/langversion;运行后必须为ISO-1、ISO-2、3、4、5或默认值

Asp.net mvc 无效选项';6';for/langversion;运行后必须为ISO-1、ISO-2、3、4、5或默认值,asp.net-mvc,web-config,Asp.net Mvc,Web Config,我更改了项目的.NET版本,现在出现以下错误: 编译器错误消息:CS1617:对于/langversion,选项“6”无效; 必须是ISO-1、ISO-2、3、4、5或默认值 这是我的web.config: <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0

我更改了项目的.NET版本,现在出现以下错误:

编译器错误消息:CS1617:对于/langversion,选项“6”无效; 必须是ISO-1、ISO-2、3、4、5或默认值

这是我的web.config:

  <compilers>
          <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4" compilerOptions="/langversion:5/nowarn:1659;1699;1701">
            <providerOption name="CompilerVersion" value="v4.0"/>
          </compiler>
          <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+">
            <providerOption name="CompilerVersion" value="v4.0"/>
          </compiler>
        </compilers>


有人知道这意味着什么吗?

编译器选项中更改为
语言版本:6

<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4" compilerOptions="/langversion:6/nowarn:1659;1699;1701">