I have an old project that was using .net 4.5 which I have upgraded to .net 4.6.2. I am using visual studio 2017, so it should support lambda expressions, but when I try to run my project it always throws this error:
Invalid token '=>' in class, struct, or interface member declaration
How can I get my project to compile using c# 6? I thought just upgrading the target framework was enough?