如何阻止Resharper推荐Net4.6功能?

如何阻止Resharper推荐Net4.6功能?,resharper,Resharper,如何阻止Resharper推荐Net4.6功能 在这种情况下,建议添加 using static System.String; // ReSharper disable BuiltInTypeReferenceStyle 并将String.Format更改为justFormat,String.IsNullOrWhiteSpace更改为IsNullOrWhiteSpace,等等 我知道要添加 using static System.String; // ReSharper disable B

如何阻止Resharper推荐Net4.6功能

在这种情况下,建议添加

using static System.String;
// ReSharper disable BuiltInTypeReferenceStyle
并将
String.Format
更改为just
Format
String.IsNullOrWhiteSpace
更改为
IsNullOrWhiteSpace
,等等

我知道要添加

using static System.String;
// ReSharper disable BuiltInTypeReferenceStyle
但我必须对所有文件执行此操作(这是假设我记得并且不只是让Resharper进行更改)

您如何确保它最多只建议NET4.5功能?(因为这是部署在我们服务器上的)

事实上,其中许多是C#6语言或编译器功能

将项目语言级别设置回C#5或更低,那么您将看不到其中的许多语言


,以防万一(像我一样)你没有意识到这是一个选项。@PatrickQuirk Google将这篇文章作为顶级结果返回,并带有这样的关键字。@PatrickQuirk非常好。。。我真的和你一样,但我不知道这是一个选择。。。