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.
我有 VS2012 和本地 tfs2012 服务器。当我签入代码时,我需要 StyleCop 的一些活动检查代码。
我需要的不是不通过 StyleCop 规则的代码不会发送到 TFS。没有在构建时间签入。
您可以自定义构建模板以使用TFS 社区构建扩展中包含的 StyleCop 活动。我就是这样做的。
您可以将 StyleCop 与 MSBuild 集成,以便在项目的每次构建期间运行它。
查看StyleCop 项目页面上的文档