开发者

Automatically enforce Code Analysis policies in Visual Studio 2008

开发者 https://www.devze.com 2023-04-03 18:04 出处:网络
Our team are looking into implementing Code Analysis as a check in policy in TFS. We\'ve decided on which rules we 开发者_如何学JAVAwant to enforce but won\'t be applying the policies to TFS for a w

Our team are looking into implementing Code Analysis as a check in policy in TFS.

We've decided on which rules we 开发者_如何学JAVAwant to enforce but won't be applying the policies to TFS for a while as we are currently migrating to TFS 2010.

In the meantime to get used to it and start removing Code Analysis warnings the dev team are going to start manually enabling Code Analysis.

So, is there a way we can publish or automatically enforce a set of rules without having to manually edit the properties for every project in every solution?


For sharing Code Analysis settings between projects in VS 2008, see http://blogs.msdn.com/b/codeanalysis/archive/2006/11/16/faq-how-do-i-share-managed-code-analysis-rule-settings-over-multiple-projects-david-kean.aspx. (The article was written for VS 2005, but the same approach is appropriate in VS 2008 as well. In VS 2010, use of a shared rule set file is a better approach, although it may be specified using the same imported target mechanism.)

0

精彩评论

暂无评论...
验证码 换一张
取 消