gpt4 book ai didi

c# - Visual Studio 代码分析与 StyleCop + FxCop

转载 作者:IT王子 更新时间:2023-10-29 03:41:24 26 4
gpt4 key购买 nike

我以前在我的 Visual Studio 项目中使用过 StyleCop + FxCop。但现在我正在测试 Visual Studio Code Analysis 工具,它更容易集成到 MSBuild 中,我发现这个工具分析了 FxCop 和 StyleCop 的一些规则。

此工具是 FxCop 和 StyleCop 的完全替代品还是只是实现了它们的一些规则?

最佳答案

Visual Studio 包括 FxCop 等。

来自developer blog of FxCop :

Sorry about my ignorance, but I assumeFxCop is completely separate from theCode Analysis in VSTS? Morespecifically, I assume that if Iinstall the new version of FxCop, VSTSwill not take advantage (no sharedcode?)? If this is the case, any ideawhen these changes will make it intoVSTS code analysis? Thanks!

That's correct, they are differentproducts, however they do have acommon engine. Visual Studio 2008 SP1already comes with the same fixes andanalysis (plus a little bit more), sothere is no need to 'update' VisualStudio with the latest FxCop.

A developer blog还给出了每个中的确切规则。

至于 StyleCop,它独立于 VS 代码分析,如 this blog post 中所述,链接到 Jader Dias' post .

关于c# - Visual Studio 代码分析与 StyleCop + FxCop,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/580168/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com