FxCop规则“DoNotCallPropertiesThatCloneValuesInLoops” (CA1817) [英] FxCop Rule "DoNotCallPropertiesThatCloneValuesInLoops" (CA1817)
问题描述
Hi Team
对于FxCop规则CA1817-"不要调用克隆循环中的值的属性",我在MSDN链接中看到了规则详细信息。我希望在我的C#代码的静态分析中使用这个规则。
我在VS2013&中搜索了这个规则。 VS2015 FxCop规则,FxCop 10.0规则但是我无法在该集合中找到此规则。因此,请建议我在何处或如何获得此规则dll将此规则包含在分析规则列表中。
提前感谢您的建议。
注意:规则详细信息(MSDN)链接"https://msdn.microsoft.com/en-us/library/ms182270(v = vs.100).aspx"
谢谢&问候
vivaL
Hi Team
For the FxCop rule CA1817- "Do Not Call Properties That Clone Values In Loops", I seen the Rule details in the MSDN link. And am wish to use this rule in static analysis for my C# code.
I searched for this rule in the VS2013 & VS2015 FxCop rules, FxCop 10.0 rules But i'm not able to find this rule in that collection. So please suggest me where or How can i get this rule dll to Include this rule in the analysis rules list.
Thanks in advance for your suggestion.
Note: Rule details (MSDN) link "https://msdn.microsoft.com/en-us/library/ms182270(v=vs.100).aspx"
Thanks & Regards
vivaL
推荐答案
嗨vivaL,
Hi vivaL,
事实证明,FxCop规则CA1817-"不要调用在循环中克隆值的属性"自FxCop 1.36发布以来已被删除。请查看以下文章以获取更多信息。
As it turns out FxCop rule CA1817- "Do Not Call Properties That Clone Values In Loops" has been removed since FxCop 1.36 released. Please look into below article for more information.
FxCop - Visual Studio 2015的Corrent性能警告规则列表
从上面的链接规则可以看出,CA1817不再可用。希望这会对你有所帮助。
As you can see from the above link rule CA1817 is no longer available. Hope this helps you.
这篇关于FxCop规则“DoNotCallPropertiesThatCloneValuesInLoops” (CA1817)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!