1

How can you stop Resharper from suggesting NET 4.6 features?

In this case it's suggesting adding ...

using static System.String;

and changing String.Format to just Format, String.IsNullOrWhiteSpaceto IsNullOrWhiteSpace, etc.

I'm aware of adding ...

// ReSharper disable BuiltInTypeReferenceStyle

but I have to do this for all files (and that's assuming I remember and don't just let Resharper make the change)

How do you make sure it only suggests up to NET 4.5 features? (as that is what's deployed on our servers)

SteveC
  • 15,808
  • 23
  • 102
  • 173
  • See ... http://stackoverflow.com/questions/27621458/resharper-disable-c-sharp-6-0-support/27628609#27628609 – SteveC Oct 20 '15 at 13:13

1 Answers1

3

Many of them are in fact C# 6 language or compiler features.

Set project language level back to C# 5 or lower and then you will not see many of them.

https://www.jetbrains.com/resharper/help/ReSharper_by_Language__CSharp.html

Lex Li
  • 60,503
  • 9
  • 116
  • 147