Compiler error “CS1617: Invalid option ‘6’ for /langversion” comes up in Visual Studio 2015 for .Net Framework 4.6

I created an empty ASP.Net MVC 5 project in Visual Studio 2015 recently. This project targeted .Net Framework version 4.5.2 by default. The project compiled successfully and ran as expected without any issues. Later on I changed this from the project properties to target the latest .Net Framework v4.6 This time however, when I tried […]