Compile errors when using C# 7 features in new VS Studio 2017 ASP.NET MVC 5.2.3 project
I'm using VS 2017 usually for console applications. But now I have to create a new ASP.NET MVC project and found something curious. Auto generation of getter and setter (context menu "Quick actions and refactoring < Ecapsulate field (and use property)") raise a compiling error. To give an easy example: public class Person { private string firstname; public string Firstname { get => firstname; set => firstname = value; } } Error message: 1>------ Build started: Project: DummyASPNETMVC, Configuration: Debug Any CPU ------ 1>C:\dev\C#\DummyASPNETMVC\DummyASPNETMVC\Models\Person.cs(12,39,12,41):