Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2015 + Resharper: Don't use C#6

I've currently to test VS2015 to see how it reacts with our solution. I've some trouble because VS2015 brings C#6, which I cannot yet use(because my colleagues don't have this, because our build machine will also not have it before months).

I saw that I should be able to specify for each project language Version to C#5. I did it for all our projects(270 of them). Now when I compile with a C#6 feature, I've an error, which is good.

But, resharper keep trying to make me use Expression body for properties, string interpolation, ...

Is there a way that Resharper don't propose this kind of changes?

like image 722
J4N Avatar asked Mar 13 '23 22:03

J4N


1 Answers

So I understand you just disabled C#6 support in Roslyn using:
Project Properties/Build/Advanced/Language Version.

But you also have to tell ReSharper to not suggest C#6 features (see comments) by selecting a project in the solution explorer, and then changing the following in the properties window:

properties window

The good news is that you can select multiple projects at once in the solution explorer.

like image 99
Lucas Trzesniewski Avatar answered Mar 21 '23 05:03

Lucas Trzesniewski