简体   繁体   English

重新锐化时关闭分析

[英]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.

相关问题 停止重新按字母顺序排序字段? - Stop re-sharper alphabetically ordering fields? Visual Studio-重新包装快捷方式已损坏 - Visual Studio - Re-Sharper shortcut broken Re-Sharper在什么假设下会显示“使用隐式类型的局部变量”消息? - Under what assumption does Re-Sharper shows me “Use implicitly typed local variable” message? 打开/关闭显示器电源时触发的事件 - Events fired when the display power is switched On/Off C#定时器即使系统关闭或重新启动也要运行 - C# Timer to run even if system is switched off or restarted 如何检测复选框是否打开和关闭并将这些更改写回数据源? - How to detect if a Checkbox is switched on and off and write those changes back to the datasource? 这比Resharper机器人还要锋利吗? - Is this sharper than the Resharper Robots? 粒子效果继续播放(关闭循环并切换停止动作以销毁) - Particle Effect keeps playing(turned off looping and switched stop action to destroy) 有人可以向我解释我们从股市分析和预测 web 项目中得出的这个算法吗? - Can someone explain this algorithm to me that we have pulled off from a stock market analysis and prediction web project? 如何检测切换的桌面? - How to detect switched Desktops?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM