[英]Analysis is switched off in re-sharper
I am getting an error says Analysis is switched off
in one of the file in solution. 我收到一个错误,说解决方案中的一个文件中的
Analysis is switched off
。 I am not sure why re-sharper is not considering this file alone. 我不确定为什么re-sharper不会单独考虑这个文件。
Please let me know, in case somebody have solution for the same. 如果有人有相同的解决方案,请告诉我。 How to switch on analysis in re-sharper for one file alone?
如何单独为一个文件重新锐化分析?
There are a number of reasons for analysis being switched off in ReSharper. 在ReSharper中关闭分析的原因有很多。 One is that the file is source, added by a NuGet package.
一个是文件是源文件,由NuGet包添加。 This isn't your code, so won't necessarily be to your standards, so it's not fair to flag issues such as naming standard violations in this codebase.
这不是您的代码,因此不一定符合您的标准,因此标记诸如在此代码库中命名标准违规的问题是不公平的。 Another reason is that the file is a generated file, or contains generated regions (such as Windows Forms designer files).
另一个原因是该文件是生成的文件,或包含生成的区域(例如Windows窗体设计器文件)。 You can configure this in ReSharper → Options → Generated Code.
您可以在ReSharper→选项→生成的代码中进行配置。 Finally, there is another settings page: ReSharper → Options → Third-party Code, which allows disabling just analysis, or analysis AND indexing in certain code.
最后,还有另一个设置页面:ReSharper→选项→第三方代码,它允许在某些代码中禁用分析或分析和索引。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.