Some people in our team are using VisualStudio 2015 while the rest is still using 2013 (both with ReSharper 9.1). The Target Framework in the project properties is set to .NET Framework 4.5.1.
My Problem: I can still use code like
public int X() => x;
which is a .NET 4.6 feature. When I build the project, it also runs (I guess because it's more or less syntactical sugar, so the compiler makes code that doesn't require .NET 4.6). My colleagues however are not very amused, when they check out my changes in Visual Studio 2013 ;-)
Is it possible to get warnings / compile errors in Visual Studio 2015 for using .NET 4.6 features?