In order to agree on the accepted answer, to quickly implement this in 100 projects and get all the configurations, and not just the specific configuration, I massively edited the csproj files and inserted the <LangVersion>5</LangVersion> node as the first child inside the first naked, unconditional <PropertyGroup> node:
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <PropertyGroup> <LangVersion>5</LangVersion> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
source share