Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当 gatecheckin 进入 tfs2010 时,我需要运行 StyleCop 规则检查。但我不知道如何配置它。请帮忙。
最简单的方法是从使用 SyleCop 更改为使用 VS2010 中内置的代码分析。
如果必须使用 StyleCop,则需要让它作为构建期间使用的 XAML 工作流上的活动运行。最简单的方法是创建一个以选项作为参数运行 StyleCop 的活动。然后,您可以将这些选项显示在构建定义上的 Process 设置中。
我会查看http://msbuildextensionpack.codeplex.com/