Updated an existing Web Site project type Visual Studio 2015, I changed the Framework to 4.6.
I then expected to have all those new features available in my code behind files.
Unfortunately I'm getting errors like:
Error CS8026: Feature 'expression-bodied property' is not available in C# 5. Please use language version 6 or greater.
or e.g.:
Error CS8026: Feature 'interpolated strings' is not available in C# 5. Please use language version 6 or greater.
I did a quick Google check and found a guy posting some comments in a blog posting of ScottGu (search for "8026" on the page).
Since I do not understand his solution, plus I want to have the solution more visible, I've created this SO posting.
My question:
How can I have a Visual Studio 2015 project of type Web Site (i.e. not Web Application) to recognize C# 6 features?
See Question&Answers more detail:os