c# - CS1617: Invalid option ‘6’ for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default -


kept getting error when running fresh asp.net mvc application (straight out of vs 2015 community) on windows 2008 server machine.

lots of people running it, wanted post here

found crazy easy fix guy: expertdebugger.

<system.codedom>     <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:6 /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>   </system.codedom> 

change langversion:6 towards bottom 6 5 - langversion:5

fixed me. thank him.


Comments

Popular posts from this blog

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -