Enabling c# 7 in a asp.net application

In website’s NuGet window:

  1. Uninstall Microsoft.CodeDom.Providers.DotNetCompilerPlatform
  2. Re-install it
  3. In web.config,
    under: system.codedom > compilers > compiler,
    change compilerOptions=”/langversion:6 to 7

Leave a Comment